Author: des
Date: Sat Mar 12 11:26:37 2011
New Revision: 219564
URL: http://svn.freebsd.org/changeset/base/219564

Log:
  Mention the name of the module in warning messages.

Modified:
  head/lib/libpam/modules/pam_group/pam_group.c

Modified: head/lib/libpam/modules/pam_group/pam_group.c
==============================================================================
--- head/lib/libpam/modules/pam_group/pam_group.c       Sat Mar 12 11:12:30 
2011        (r219563)
+++ head/lib/libpam/modules/pam_group/pam_group.c       Sat Mar 12 11:26:37 
2011        (r219564)
@@ -75,14 +75,14 @@ pam_sm_authenticate(pam_handle_t *pamh, 
        local = openpam_get_option(pamh, "luser") ? 1 : 0;
        remote = openpam_get_option(pamh, "ruser") ? 1 : 0;
        if (local && remote) {
-               openpam_log(PAM_LOG_ERROR,
+               openpam_log(PAM_LOG_ERROR, "(pam_group) "
                    "the luser and ruser options are mutually exclusive");
                return (PAM_SERVICE_ERR);
        } else if (local) {
                /* we already have the correct struct passwd */
        } else {
                if (!remote)
-                       openpam_log(PAM_LOG_NOTICE,
+                       openpam_log(PAM_LOG_NOTICE, "(pam_group) "
                            "neither luser nor ruser specified, assuming 
ruser");
                /* default / historical behavior */
                if (pam_get_item(pamh, PAM_RUSER, &ruser) != PAM_SUCCESS ||
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to