[Pkg-shadow-commits] r2844 - in upstream/trunk: . lib

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Tue Apr 28 21:01:20 UTC 2009


Author: nekral-guest
Date: 2009-04-28 21:01:20 +0000 (Tue, 28 Apr 2009)
New Revision: 2844

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/defines.h
Log:
	* lib/defines.h: Include <utmpx.h> and <utmp.h> to define
	USER_NAME_MAX_LENGTH.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-04-28 20:59:31 UTC (rev 2843)
+++ upstream/trunk/ChangeLog	2009-04-28 21:01:20 UTC (rev 2844)
@@ -1,5 +1,10 @@
 2009-04-28  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* lib/defines.h: Include <utmpx.h> and <utmp.h> to define
+	USER_NAME_MAX_LENGTH.
+
+2009-04-28  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* src/login.c: Change a snprintf() to strncpy(). There are no
 	format.
 

Modified: upstream/trunk/lib/defines.h
===================================================================
--- upstream/trunk/lib/defines.h	2009-04-28 20:59:31 UTC (rev 2843)
+++ upstream/trunk/lib/defines.h	2009-04-28 21:01:20 UTC (rev 2844)
@@ -367,8 +367,10 @@
 
 /* Maximum length of usernames */
 #ifdef HAVE_UTMPX_H
+# include <utmpx.h>
 # define USER_NAME_MAX_LENGTH (sizeof (((struct utmpx *)NULL)->ut_user))
 #else
+# include <utmp.h>
 # ifdef HAVE_STRUCT_UTMP_UT_USER
 #  define USER_NAME_MAX_LENGTH (sizeof (((struct utmp *)NULL)->ut_user))
 # else




More information about the Pkg-shadow-commits mailing list