From 617b9d81af5849b4421f3f7ce8193ed63978f617 Mon Sep 17 00:00:00 2001 From: lars Date: Fri, 9 Feb 2007 20:56:16 +0000 Subject: [PATCH] use the right environmental variable as it is set by 'super' --- bin/CryptoBoxRootActions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/CryptoBoxRootActions b/bin/CryptoBoxRootActions index d72f509..05c80d7 100755 --- a/bin/CryptoBoxRootActions +++ b/bin/CryptoBoxRootActions @@ -399,9 +399,9 @@ def getCallingUserInfo(): @return: tuple of (name, uid, (groups)) """ ## are we called via 'super'? - if ("SUPERCMD" in os.environ) and ("USER" in os.environ): + if ("SUPERCMD" in os.environ) and ("ORIG_USER" in os.environ): ## return the user that was calling super - return getUserInfo(os.environ["USER"]) + return getUserInfo(os.environ["ORIG_USER"]) else: ## return the current user return getUserInfo(os.getuid())