Repository: karaf
Updated Branches:
  refs/heads/karaf-3.0.x 9ddd8b7da -> a32bf9a51


[KARAF-2890] Use the user shell standard shell in the wrapper karaf-service


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/a32bf9a5
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/a32bf9a5
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/a32bf9a5

Branch: refs/heads/karaf-3.0.x
Commit: a32bf9a51d98533be2e484850b47558da5d31315
Parents: 9ddd8b7
Author: Jean-Baptiste Onofré <jbono...@apache.org>
Authored: Mon Sep 15 14:26:50 2014 +0200
Committer: Jean-Baptiste Onofré <jbono...@apache.org>
Committed: Mon Sep 15 14:26:50 2014 +0200

----------------------------------------------------------------------
 .../resources/org/apache/karaf/wrapper/internal/unix/karaf-service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/a32bf9a5/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
----------------------------------------------------------------------
diff --git 
a/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
 
b/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
index 9f1f004..8806bed 100644
--- 
a/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
+++ 
b/wrapper/core/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
@@ -324,7 +324,7 @@ checkUser() {
 
         # Still want to change users, recurse.  This means that the user will 
only be
         #  prompted for a password once.
-        su -m $RUN_AS_USER -s /bin/sh -c "$REALPATH $1"
+        su - -m $RUN_AS_USER -c "$REALPATH $1"
         RETVAL=$?
 
         # Now that we are the original user again, we may need to clean up the 
lock file.

Reply via email to