Hi!

On Thu, 2026-05-07 at 11:53:42 +0200, Gioele Barabucci wrote:
> More constrained programs could exploit other Essential utilities
> like grep or find. For instance (hat tip to Simon McVittie):
> 
> ```
> find /proc -maxdepth 2 -path '/proc/[0-9]*/exe' \
>   -xtype f -lname /usr/bin/$daemon -print -quit`
> ```

Ugh, please no. Besides being unportable, this will not match on
deleted filenames, to start with.

As mentioned on #810018, I've now implemented support for printing the
matched PIDs in start-stop-daemon (not sure yet whether to make it a
command or an option), but the functionality should be present in the
next dpkg release.

Thanks,
Guillem

Reply via email to