[SCM] NSS Wrapper Repository - branch master updated
Andreas Schneider
asn at samba.org
Fri Dec 20 07:53:54 MST 2013
The branch, master has been updated
via 6cf4553 nwrap: Fix fd checks.
from 21bce5e cmake: Add a valgrind suppression file.
http://gitweb.samba.org/?p=nss_wrapper.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 6cf45534f1d6c6d888d62b551cc7883ac0d2e1cc
Author: Andreas Schneider <asn at samba.org>
Date: Fri Dec 20 15:53:42 2013 +0100
nwrap: Fix fd checks.
-----------------------------------------------------------------------
Summary of changes:
src/nss_wrapper.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Changeset truncated at 500 lines:
diff --git a/src/nss_wrapper.c b/src/nss_wrapper.c
index 829453e..087dbdd 100644
--- a/src/nss_wrapper.c
+++ b/src/nss_wrapper.c
@@ -4181,7 +4181,7 @@ void nwrap_destructor(void)
struct nwrap_cache *c = nwrap_pw_global.cache;
nwrap_files_cache_unload(c);
- if (c->fd > 0) {
+ if (c->fd >= 0) {
close(c->fd);
}
@@ -4193,7 +4193,7 @@ void nwrap_destructor(void)
struct nwrap_cache *c = nwrap_gr_global.cache;
nwrap_files_cache_unload(c);
- if (c->fd > 0) {
+ if (c->fd >= 0) {
close(c->fd);
}
@@ -4205,7 +4205,7 @@ void nwrap_destructor(void)
struct nwrap_cache *c = nwrap_he_global.cache;
nwrap_files_cache_unload(c);
- if (c->fd > 0) {
+ if (c->fd >= 0) {
close(c->fd);
}
--
NSS Wrapper Repository
More information about the samba-cvs
mailing list