]> granicus.if.org Git - shadow/commitdiff
Add forgotten files in the previous ChangeLog entry.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 18 Nov 2007 23:20:02 +0000 (23:20 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sun, 18 Nov 2007 23:20:02 +0000 (23:20 +0000)
ChangeLog
lib/Makefile.am
src/login.c

index d694bc68a7785375a7d5be17b86e2cea7553729f..895017c60edfc2e383ee4d07834350316aef6657 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -10,7 +10,7 @@
        available.
        * libmisc/limits.c, libmisc/entry.c, libmisc/chowntty.c,
        libmisc/addgrps.c, libmisc/myname.c, libmisc/rlogin.c,
-       libmisc/pwdcheck.c, src/newgrp.c, src/login_nopam.c,
+       libmisc/pwdcheck.c, src/newgrp.c, src/login_nopam.c, src/login.c,
        src/userdel.c, src/lastlog.c, src/grpck.c, src/gpasswd.c,
        src/newusers.c, src/chpasswd.c, src/chfn.c, src/groupmems.c,
        src/usermod.c, src/expiry.c, src/groupdel.c, src/chgpasswd.c,
@@ -30,7 +30,7 @@
        Note: the getpwent/getgrent calls should probably be checked also.
        * src/groupdel.c, src/expiry.c: Fix typos in comments.
        * src/groupmod.c: Re-indent.
-       * libmisc/Makefile.am, lib/groupmem.c, lib/groupio.c, lib/pwmem.c,
+       * lib/Makefile.am, lib/groupmem.c, lib/groupio.c, lib/pwmem.c,
        lib/pwio.c, lib/shadowmem.c, lib/shadowio.c: Move the __<xx>_dup
        functions (used by the xget... functions) from the <xx>io.c files
        to the new <xx>mem.c files. This avoid linking some utils against
index c309f8083f4c768093f08921f61c24316fa4d045..9a3ce53bc4053b49d12796b84cdca1499e717d3d 100644 (file)
@@ -19,6 +19,7 @@ libshadow_la_SOURCES = \
        getdef.c \
        getdef.h \
        groupio.c \
+       groupmem.c \
        groupio.h \
        gshadow.c \
        lockpw.c \
@@ -32,6 +33,7 @@ libshadow_la_SOURCES = \
        pwauth.h \
        pwio.c \
        pwio.h \
+       pwmem.c \
        sgetgrent.c \
        sgetpwent.c \
        sgroupio.c \
@@ -39,6 +41,7 @@ libshadow_la_SOURCES = \
        shadow.c \
        shadowio.c \
        shadowio.h \
+       shadowmem.c \
        utent.c
 
 # These files are unneeded for some reason, listed in
index 39326ad2b64f463d1dd2c396c255b020a85e5c95..beb55f838063b312b912caa29f7fad594538f8ba 100644 (file)
@@ -647,7 +647,7 @@ int main (int argc, char **argv)
                                        (const void **) &pam_user);
 
                          if (pam_user && pam_user[0]) {
-                           pwd = getpwnam(pam_user);
+                           pwd = xgetpwnam(pam_user);
                            if (pwd) {
                              pwent = *pwd;
                              failent_user = pwent.pw_name;
@@ -693,6 +693,7 @@ int main (int argc, char **argv)
                                        char buf[64];
 
                                        audit_fd = audit_open ();
+                                       /* local, no need for xgetpwnam */
                                        pw = getpwnam (username);
                                        if (pw) {
                                                snprintf (buf, sizeof (buf),
@@ -738,9 +739,9 @@ int main (int argc, char **argv)
                retcode =
                    pam_get_item (pamh, PAM_USER, (const void **) &pam_user);
                setpwent ();
-               pwd = getpwnam (pam_user);
+               pwd = xgetpwnam (pam_user);
                if (!pwd) {
-                       SYSLOG ((LOG_ERR, "getpwnam(%s) failed",
+                       SYSLOG ((LOG_ERR, "xgetpwnam(%s) failed",
                                 getdef_bool ("LOG_UNKFAIL_ENAB") ?
                                 pam_user : "UNKNOWN"));
                        exit (1);
@@ -779,10 +780,10 @@ int main (int argc, char **argv)
 #endif                         /* ! USE_PAM */
 
 #ifdef USE_PAM
-               if (!(pwd = getpwnam (pam_user))) {
+               if (!(pwd = xgetpwnam (pam_user))) {
                        pwent.pw_name = pam_user;
 #else
-               if (!(pwd = getpwnam (username))) {
+               if (!(pwd = xgetpwnam (username))) {
                        pwent.pw_name = username;
 #endif
                        strcpy (temp_pw, "!");
@@ -797,6 +798,7 @@ int main (int argc, char **argv)
 #ifndef USE_PAM
                spwd = NULL;
                if (pwd && strcmp (pwd->pw_passwd, SHADOW_PASSWD_STRING) == 0) {
+                       /* !USE_PAM, no need for xgetspnam */
                        spwd = getspnam (username);
                        if (spwd)
                                pwent.pw_passwd = spwd->sp_pwdp;
@@ -996,7 +998,9 @@ int main (int argc, char **argv)
         */
        if (spwd) {             /* check for age of password */
                if (expire (&pwent, spwd)) {
+                       /* !USE_PAM, no need for xgetpwnam */
                        pwd = getpwnam (username);
+                       /* !USE_PAM, no need for xgetspnam */
                        spwd = getspnam (username);
                        if (pwd)
                                pwent = *pwd;