[Pkg-shadow-commits] r2740 - in upstream/trunk: . src

Nicolas FRANÇOIS nekral-guest at alioth.debian.org
Wed Apr 22 19:54:28 UTC 2009


Author: nekral-guest
Date: 2009-04-22 19:54:28 +0000 (Wed, 22 Apr 2009)
New Revision: 2740

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/src/login.c
Log:
	* src/login.c: Do not include netdb.h. gethostbyname() is no more
	called from within login.c. Also UT_ADDR does not exist anymore.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2009-04-21 22:46:01 UTC (rev 2739)
+++ upstream/trunk/ChangeLog	2009-04-22 19:54:28 UTC (rev 2740)
@@ -1,5 +1,10 @@
 2009-04-22  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* src/login.c: Do not include netdb.h. gethostbyname() is no more
+	called from within login.c. Also UT_ADDR does not exist anymore.
+
+2009-04-22  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* src/login.c: Check if login is run with effective root
 	privileges. This should be more helpful to users than a failure to
 	find an utmp entry or failure to access a file.

Modified: upstream/trunk/src/login.c
===================================================================
--- upstream/trunk/src/login.c	2009-04-21 22:46:01 UTC (rev 2739)
+++ upstream/trunk/src/login.c	2009-04-22 19:54:28 UTC (rev 2740)
@@ -37,9 +37,6 @@
 #include <errno.h>
 #include <grp.h>
 #include <lastlog.h>
-#ifdef UT_ADDR
-#include <netdb.h>
-#endif
 #include <pwd.h>
 #include <signal.h>
 #include <stdio.h>




More information about the Pkg-shadow-commits mailing list