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
- From: Commits of the nss-pam-ldapd project <nss-pam-ldapd-commits [at] lists.arthurdejong.org>
- To: nss-pam-ldapd-commits [at] lists.arthurdejong.org
- Reply-to: nss-pam-ldapd-users [at] lists.arthurdejong.org
- Subject: nss-pam-ldapd commit: r1592 - nss-pam-ldapd/nslcd
- Date: Mon, 9 Jan 2012 13:10:26 +0100 (CET)
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/
- nss-pam-ldapd commit: r1592 - nss-pam-ldapd/nslcd,
Commits of the nss-pam-ldapd project