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

nekral-guest at alioth.debian.org nekral-guest at alioth.debian.org
Mon Mar 17 23:04:46 UTC 2008


Author: nekral-guest
Date: 2008-03-17 23:04:46 +0000 (Mon, 17 Mar 2008)
New Revision: 1902

Modified:
   upstream/trunk/ChangeLog
   upstream/trunk/lib/prototypes.h
   upstream/trunk/src/login.c
Log:
login_access() is used in src/login.c, and defined in src/login_nopam.c
(which lacks a prototype). Move its prototype from src/login.c to
lib/prototypes.h.


Modified: upstream/trunk/ChangeLog
===================================================================
--- upstream/trunk/ChangeLog	2008-03-17 23:02:23 UTC (rev 1901)
+++ upstream/trunk/ChangeLog	2008-03-17 23:04:46 UTC (rev 1902)
@@ -1,5 +1,12 @@
 2008-03-17  Nicolas François  <nicolas.francois at centraliens.net>
 
+	* lib/prototypes.h, src/login.c: login_access() is used in
+	src/login.c, and defined in src/login_nopam.c (which lacks a
+	prototype). Move its prototype from src/login.c to
+	lib/prototypes.h.
+
+2008-03-17  Nicolas François  <nicolas.francois at centraliens.net>
+
 	* src/gpasswd.c, src/groupmod.c: Compilation fix. gshadow_locked
 	should only be used if SHADOWGRP is defined.
 

Modified: upstream/trunk/lib/prototypes.h
===================================================================
--- upstream/trunk/lib/prototypes.h	2008-03-17 23:02:23 UTC (rev 1901)
+++ upstream/trunk/lib/prototypes.h	2008-03-17 23:04:46 UTC (rev 1902)
@@ -114,6 +114,9 @@
                        const char *line,
                        const char *host);
 
+/* login_nopam.c */
+extern int login_access (const char *user, const char *from);
+
 /* loginprompt.c */
 extern void login_prompt (const char *, char *, int);
 

Modified: upstream/trunk/src/login.c
===================================================================
--- upstream/trunk/src/login.c	2008-03-17 23:02:23 UTC (rev 1901)
+++ upstream/trunk/src/login.c	2008-03-17 23:04:46 UTC (rev 1902)
@@ -128,8 +128,6 @@
 static void check_flags (int, char *const *);
 
 #ifndef USE_PAM
-extern int login_access (const char *, const char *);
-
 static struct faillog faillog;
 
 static void bad_time_notify (void);




More information about the Pkg-shadow-commits mailing list