Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/external/bsd/openpam/dist/lib Pull up following revision(...



details:   https://anonhg.NetBSD.org/src/rev/a7db117dec0c
branches:  netbsd-6
changeset: 774459:a7db117dec0c
user:      riz <riz%NetBSD.org@localhost>
date:      Thu Aug 16 02:41:05 2012 +0000

description:
Pull up following revision(s) (requested by tsutsui in ticket #505):
        external/bsd/openpam/dist/lib/openpam_dynamic.c: revision 1.4
PR/46801: Izumi Tsutsui:
- downgrade the error of not finding a file to load to a debug message.
  Statically linked OpenPAM (like on sun2) does not have shared objects.
- make sure we preserve errno around dlclose() which will call munmap()
XXX: Pullup to 6

diffstat:

 external/bsd/openpam/dist/lib/openpam_dynamic.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 37b90251a30b -r a7db117dec0c external/bsd/openpam/dist/lib/openpam_dynamic.c
--- a/external/bsd/openpam/dist/lib/openpam_dynamic.c   Thu Aug 16 02:37:55 2012 +0000
+++ b/external/bsd/openpam/dist/lib/openpam_dynamic.c   Thu Aug 16 02:41:05 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: openpam_dynamic.c,v 1.3 2012/01/03 18:56:49 christos Exp $     */
+/*     $NetBSD: openpam_dynamic.c,v 1.3.2.1 2012/08/16 02:41:05 riz Exp $      */
 
 /*-
  * Copyright (c) 2002-2003 Networks Associates Technology, Inc.
@@ -123,11 +123,14 @@
        }
        return (module);
 buf_err:
+       serrno = errno;
        if (dlh != NULL)
                dlclose(dlh);
        FREE(module);
+       errno = serrno;
 err:
-       openpam_log(PAM_LOG_ERROR, "%s: %s", epath, strerror(errno));
+       openpam_log(errno == ENOENT ? PAM_LOG_DEBUG : PAM_LOG_ERROR, "%s: %s",
+           epath, strerror(errno));
        return (NULL);
 }
 



Home | Main Index | Thread Index | Old Index