Bug#924957: remove flag "-f" in pidof

Dmitry Bogatov KAction at debian.org
Wed Mar 20 09:58:25 GMT 2019

[2019-03-19 07:38] KatolaZ <katolaz at freaknet.org>
> 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
> that.

Somehow I missed this addition. For what is worth, I totally support
this request.
        Note, that I send and fetch email in batch, once every 24 hours.
                 If matter is urgent, try https://t.me/kaction
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://www.chiark.greenend.org.uk/pipermail/debian-init-diversity/attachments/20190320/6e15e4f7/attachment-0001.sig>

More information about the Debian-init-diversity mailing list