lists.arthurdejong.org
RSS feed

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

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

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



Author: jhrozek
Date: Mon Jan  9 13:10:23 2012
New Revision: 1592
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1592&view=revision

Log:
Warn if fd cannot be closed in is_locked()

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

Modified: nss-pam-ldapd/nslcd/nslcd.c
==============================================================================
--- nss-pam-ldapd/nslcd/nslcd.c Mon Jan  9 13:07:29 2012        (r1591)
+++ nss-pam-ldapd/nslcd/nslcd.c Mon Jan  9 13:10:23 2012        (r1592)
@@ -472,10 +472,12 @@
     }
     if (lockf(fd,F_TEST,0)<0)
     {
-      close(fd);
+      if (close(fd))
+        log_log(LOG_WARNING,"problem closing fd: %s",strerror(errno));
       return -1;
     }
-    close(fd);
+    if (close(fd))
+      log_log(LOG_WARNING,"problem closing fd: %s",strerror(errno));
   }
   return 0;
 }
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits/