[Pkg-shadow-commits] r2492 - in upstream/trunk: . contrib

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Sat Mar 7 16:32:11 UTC 2009


Author: nekral-guest
Date: 2009-03-07 16:32:11 +0000 (Sat, 07 Mar 2009)
New Revision: 2492

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/contrib/adduser-old.c
   upstream/trunk/contrib/adduser.c
Log:
	* contrib/adduser-old.c, contrib/adduser.c: Do not use the target
	of snprintf in one of the format's parameters.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-03-07 16:30:49 UTC (rev 2491)
+++ upstream/trunk/ChangeLog	2009-03-07 16:32:11 UTC (rev 2492)
@@ -1,5 +1,10 @@
 2009-03-07  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* contrib/adduser-old.c, contrib/adduser.c: Do not use the target
+	of snprintf in one of the format's parameters.
+
+2009-03-07  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* man/groupmems.8.xml: groupmems does not create new user.
 
 2009-03-03  Nicolas François  <nicolas.francois at centraliens.net>

Modified: upstream/trunk/contrib/adduser-old.c
===================================================================
--- upstream/trunk/contrib/adduser-old.c	2009-03-07 16:30:49 UTC (rev 2491)
+++ upstream/trunk/contrib/adduser-old.c	2009-03-07 16:32:11 UTC (rev 2492)
@@ -230,7 +230,7 @@
 			fflush(stdin);
 		} else
 			if (dir[strlen(dir)-1]=='/')
-				sprintf(dir,"%s%s",dir,uname);
+				sprintf(dir+strlen(dir),"%s",uname);
 
 		printf("\nShell [%s]: ",DEFAULT_SHELL);
 		fflush(stdout);

Modified: upstream/trunk/contrib/adduser.c
===================================================================
--- upstream/trunk/contrib/adduser.c	2009-03-07 16:30:49 UTC (rev 2491)
+++ upstream/trunk/contrib/adduser.c	2009-03-07 16:32:11 UTC (rev 2492)
@@ -296,7 +296,7 @@
 	      sprintf (dir, "%s/%s", DEFAULT_HOME, usrname);
 	    }
 	  else if (dir[strlen (dir) - 1] == '/')
-	    sprintf (dir, "%s%s", dir, usrname);
+	    sprintf (dir+strlen(dir), "%s", usrname);
 	}
       else
 	{




More information about the Pkg-shadow-commits mailing list