Added patch to re-enable the omit flag (-o) in pidof.

This commit is contained in:
Jesse Smith 2018-11-24 12:37:25 -04:00
parent c679a49aac
commit cb0a849e87
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,12 @@
sysvinit (2.92) unreleased; urgency=low sysvinit (2.93) released; urgency=low
[ Jesse Smith ]
* Fixed typo in pidof which would prevent the -o (omit PID)
flag from working.
Fixes Debian bug ##913394.
sysvinit (2.92) released; urgency=low
[ Jesse Smith ] [ Jesse Smith ]

View File

@ -1006,7 +1006,7 @@ int main_pidof(int argc, char **argv)
if ((token = getenv("PIDOF_NETFS")) && (strcmp(token,"no") != 0)) if ((token = getenv("PIDOF_NETFS")) && (strcmp(token,"no") != 0))
flags |= PIDOF_NETFS; flags |= PIDOF_NETFS;
while ((opt = getopt(argc,argv,"qhcof:sxn")) != EOF) switch (opt) { while ((opt = getopt(argc,argv,"qhco:f:sxn")) != EOF) switch (opt) {
case '?': case '?':
nsyslog(LOG_ERR,"invalid options on command line!\n"); nsyslog(LOG_ERR,"invalid options on command line!\n");
closelog(); closelog();