lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1605 - nss-pam-ldapd/nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1605 - nss-pam-ldapd/nslcd



Author: arthur
Date: Fri Jan 20 17:18:54 2012
New Revision: 1605
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1605&view=revision

Log:
clarify error messages and fix typo in comment

Modified:
   nss-pam-ldapd/nslcd/nslcd.c

Modified: nss-pam-ldapd/nslcd/nslcd.c
==============================================================================
--- nss-pam-ldapd/nslcd/nslcd.c Fri Jan 20 17:01:32 2012        (r1604)
+++ nss-pam-ldapd/nslcd/nslcd.c Fri Jan 20 17:18:54 2012        (r1605)
@@ -324,7 +324,7 @@
   /* close the file descriptor on exit */
   if (fcntl(sock,F_SETFD,FD_CLOEXEC)<0)
   {
-    log_log(LOG_ERR,"fctnl(F_SETFL,FD_CLOEXEC) failed: %s",strerror(errno));
+    log_log(LOG_ERR,"fctnl(F_SETFL,FD_CLOEXEC) on %s failed: 
%s",filename,strerror(errno));
     if (close(sock))
       log_log(LOG_WARNING,"problem closing socket: %s",strerror(errno));
     exit(EXIT_FAILURE);
@@ -336,7 +336,7 @@
      http://lkml.org/lkml/2005/5/16/11 */
   if (chmod(filename,(mode_t)0666))
   {
-    log_log(LOG_ERR,"chmod(0666) failed: %s",strerror(errno));
+    log_log(LOG_ERR,"chmod(0666) of %s failed: %s",filename,strerror(errno));
     if (close(sock))
       log_log(LOG_WARNING,"problem closing socket: %s",strerror(errno));
     exit(EXIT_FAILURE);
@@ -600,7 +600,7 @@
         log_log(LOG_WARNING,"problem closing socket: %s",strerror(errno));
       continue;
     }
-    /* indicate new connection to logging module (genrates unique id) */
+    /* indicate new connection to logging module (generates unique id) */
     log_newsession();
     /* handle the connection */
     handleconnection(csock,session);
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/