Repository: karaf
Updated Branches:
  refs/heads/master 6909f32ad -> 7e9f28fcf


[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/7e9f28fc
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/7e9f28fc
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/7e9f28fc

Branch: refs/heads/master
Commit: 7e9f28fcff9217bfa12db8c7d24ba0cce8e11c2d
Parents: 6909f32
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:27:38 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/7e9f28fc/wrapper/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
----------------------------------------------------------------------
diff --git 
a/wrapper/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
 
b/wrapper/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
index 9f1f004..8806bed 100644
--- 
a/wrapper/src/main/resources/org/apache/karaf/wrapper/internal/unix/karaf-service
+++ 
b/wrapper/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