You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2014/10/01 13:06:15 UTC
git commit: Revert "[KARAF-2890] Use more flexible su command in the
wrapper"
Repository: karaf
Updated Branches:
refs/heads/master e6121cf0f -> f25442f0d
Revert "[KARAF-2890] Use more flexible su command in the wrapper"
This reverts commit e6121cf0fc8327f7027538433317f58427cbddb3.
Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/f25442f0
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/f25442f0
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/f25442f0
Branch: refs/heads/master
Commit: f25442f0d690052d725dce2edb9b0d66dd60d2a4
Parents: e6121cf
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Wed Oct 1 13:06:01 2014 +0200
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Wed Oct 1 13:06:01 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/f25442f0/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 db08deb..9f1f004 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 -c "$REALPATH $1"
+ su -m $RUN_AS_USER -s /bin/sh -c "$REALPATH $1"
RETVAL=$?
# Now that we are the original user again, we may need to clean up the lock file.