]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
daemon(): when using --user run su with -s /bin/sh option.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 27 Jan 2004 11:55:40 +0000 (11:55 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Tue, 27 Jan 2004 11:55:40 +0000 (11:55 +0000)
svn-id: @3222

rc.d/init.d/functions

index 2acc2cbf02119b7371f3ab5d90cd809213245052..8c5fe98db3144f230c7bb0673d17d4e266d9cb09 100644 (file)
@@ -401,7 +401,7 @@ daemon()
                        ;;
                  --user)
                        shift
-                       [ "$1" != "root" ] && prog="/bin/su $1 -c \""
+                       [ "$1" != "root" ] && prog="/bin/su $1 -s /bin/sh -c \""
                        shift
                        ;;
                  -*|+*) SERVICE_RUN_NICE_LEVEL=$1
This page took 0.051775 seconds and 4 git commands to generate.