]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
uuidd: use output redirection which works [checkbashisms]
authorSami Kerola <kerolasa@iki.fi>
Sat, 9 Jun 2012 21:20:04 +0000 (23:20 +0200)
committerSami Kerola <kerolasa@iki.fi>
Mon, 11 Jun 2012 17:50:40 +0000 (19:50 +0200)
possible bashism in misc-utils/uuidd.rc line 52 (should be >word 2>&1):
if pidofproc -p $PIDFILE $DAEMON >& /dev/null ; then

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
misc-utils/uuidd.rc

index dbdd5f5c39fd6cf0fc9459606dfc91ee640bba9a..d10fced4ac2a89c6ba8263d2ea4f41d5f0129c2e 100644 (file)
@@ -49,7 +49,7 @@ case "$1" in
        log_end_msg $?
     ;;
   status)
-       if pidofproc -p $PIDFILE $DAEMON >& /dev/null ; then
+       if pidofproc -p $PIDFILE $DAEMON >/dev/null 2>&1; then
            echo "$DAEMON is running";
            exit 0;
        else