Re: egrep moved to /usr/sbin
Matt Zimmerman <firstname.lastname@example.org> writes:
> Hard-coding paths to programs is evil. Don't do it.
Sometimes it is necessary. For instance, four years ago (before
dictd was patched to drop root privileges), the init scripts used 'su
nobody -c "start-stop-daemon . . .' A bug report was filed because
on systems where su is secure-su, 'su nobody' gets a path that doesn't
include /sbin. To fix the bug, I had to change that to 'su nobody -c
"/sbin/start-stop-daemon . . .' .
|_) _ |_ Robert D. Hilliard <email@example.com>
|_) (_) |_) 1294 S.W. Seagull Way <firstname.lastname@example.org>
Palm City, FL 34990 USA GPG Key ID: 390D6559