[pacman-dev] [PATCH] use getuid instead of geteuid

Allan McRae allan at archlinux.org
Sun Oct 20 03:27:59 EDT 2013


From: "Vladimir A. Nazarenko" <naszar at ya.ru>

Signed-off-by: Vladimir A. Nazarenko <naszar at ya.ru>
---
 src/pacman/pacman.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index f485692..169fbc2 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -1030,7 +1030,7 @@ int main(int argc, char *argv[])
 	size_t i;
 	struct sigaction new_action, old_action;
 	const int signals[] = { SIGHUP, SIGINT, SIGTERM, SIGSEGV };
-	uid_t myuid = geteuid();
+	uid_t myuid = getuid();
 
 	/* Set signal handlers */
 	/* Set up the structure to specify the new action. */
-- 
1.8.4



More information about the pacman-dev mailing list