[Pkg-shadow-commits] r1071 - in tags/debian: . 4.0.3-31sarge7/src

Nicolas FRANCOIS nekral-guest at costa.debian.org
Sat Aug 5 00:49:15 UTC 2006


Author: nekral-guest
Date: 2006-08-05 00:49:14 +0000 (Sat, 05 Aug 2006)
New Revision: 1071

Added:
   tags/debian/4.0.3-31sarge7/
Modified:
   tags/debian/4.0.3-31sarge7/src/passwd.c
Log:
tagging version 4.0.3-31sarge7 (uploaded to proposed-updates)


Copied: tags/debian/4.0.3-31sarge7 (from rev 1070, branches/sarge)

Modified: tags/debian/4.0.3-31sarge7/src/passwd.c
===================================================================
--- branches/sarge/src/passwd.c	2006-08-05 00:26:46 UTC (rev 1070)
+++ tags/debian/4.0.3-31sarge7/src/passwd.c	2006-08-05 00:49:14 UTC (rev 1071)
@@ -958,7 +958,13 @@
 	if (argc > 1 && argv[1][0] == '-' && strchr ("gfs", argv[1][1])) {
 		char buf[200];
 
-		setuid (getuid ());
+		uid_t uid = getuid();
+		setuid (uid);
+		if (getuid() != uid) {
+		    perror("cannot set user id");
+		    SYSLOG ((LOG_ERR, "setuid to %i failed", uid));
+		    exit(E_FAILURE);
+		}
 		switch (argv[1][1]) {
 		case 'g':
 			argv[1] = GPASSWD_PROGRAM;	/* XXX warning: const */




More information about the Pkg-shadow-commits mailing list