#980880 gpsd: The argument to --pidfile is not processed, while -P works fine

Package:
gpsd
Source:
gpsd
Description:
Global Positioning System - daemon
Submitter:
Alexander Inyukhin
Date:
2021-01-23 17:21:04 UTC
Severity:
normal
#980880#5
Date:
2021-01-23 17:19:06 UTC
From:
To:
I am trying to run gpsd with --pidfile option.
When I run command as shown below, the --pidfile's argument
is treated as inaccessible device name, but after changing it to -P
gpsd starts and creates the pid file.

 /usr/sbin/gpsd --sockfile /run/gpsd.sock --pidfile /run/gpsd.pid --nowait

I think the problem here is 'no_argument' value in the long_options[]
array (gpsd/gpsd.c:1951).
Also, the same problem may affect --port option (the next line of array).