diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-24 17:50:53 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-06-24 17:50:53 -0400 |
commit | 8c9db937b42e819ab604069f0f883762a3b6d4bf (patch) | |
tree | b7b1de837b141c27db944bcbc48dce5792535015 | |
parent | 68116faceb731829569ab4f2e21d2c62682107ef (diff) |
crapv20140624.3
-rw-r--r-- | parabolaweb-changepassword.real.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parabolaweb-changepassword.real.in b/parabolaweb-changepassword.real.in index e2f6437..07499e8 100644 --- a/parabolaweb-changepassword.real.in +++ b/parabolaweb-changepassword.real.in @@ -27,8 +27,8 @@ main() { [[ -e "${WEBDIR}/manage.py" ]] [[ -n "${WEBUSER}" ]] - REAL_USER=$USER - if ! { [[ $SUID_USER == root ]] || $SUID_USER == "$WEBUSER" ]]; }; then + local REAL_USER=$USER + if ! { [[ $SUID_USER == root ]] || [[ $SUID_USER == "$WEBUSER" ]]; }; then unset SUDO_USER SUDO_UID SUDO_GID SUDO_COMMAND fi |