Devuan bug report logs - #309
remove flag "-f" in pidof

Package: sysvinit-utils; Maintainer for sysvinit-utils is Devuan Developers <>; Source for sysvinit-utils is src:sysvinit.

Reported by: KatolaZ <>

Date: Tue, 19 Mar 2019 06:33:01 UTC

Severity: normal

Done: KatolaZ <>

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to,
bug#309; Package sysvinit-utils. (full text, mbox, link).

Acknowledgement sent to KatolaZ <>:
New bug report received and forwarded. Copy sent to (full text, mbox, link).

Message #5 received at (full text, mbox, reply):

From: KatolaZ <>
Subject: remove flag "-f" in pidof
Date: Tue, 19 Mar 2019 07:29:11 +0100
[Message part 1 (text/plain, inline)]
Package: sysvinit-utils
Version: 2.93-8
Severity: normal

I am opening this bug because I think the recently added flag '-f' in
pidof should be removed. It was intended to be used as a way to format
the PIDs according to printf-style formatters, but accepting
unsanitised input from the user is quite dangerous, as shown in
#924792. The proposed solution to #924792 was to let pidof -f
interpret only '%d' and '\n'.

This is at least an unnecessary complication. pidof is already
printing the PIDs as integers (!), and any formatting can (but I would
say should/must) be done downstream by sed/awk/whatever. We can't add
a formatter to any single CLI command :\

Please remove the unneded '-f' flag. Unix is much much better than

[signature.asc (application/pgp-signature, inline)]

Reply sent to KatolaZ <>:
You have taken responsibility. (full text, mbox, link).

Notification sent to KatolaZ <>:
bug acknowledged by developer. (full text, mbox, link).

Message #10 received at (full text, mbox, reply):

From: KatolaZ <>
Subject: sorry, wrong BTS
Date: Tue, 19 Mar 2019 07:39:19 +0100
[Message part 1 (text/plain, inline)]
This should have gone to Sorry.



[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <>.
Last modified: Mon Oct 3 04:44:37 2022;