summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-28 13:08:27 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-04-05 02:39:09 +0200
commit3e8a6e576007892bab7d59367c5199a41fb1506d (patch)
tree297451b0b939f545185dea56f40ca28315ac90d5 /source3/param
parentecc822faf8f1e2f34573aabef381a846b08afeec (diff)
downloadsamba-3e8a6e576007892bab7d59367c5199a41fb1506d.tar.gz
samba-3e8a6e576007892bab7d59367c5199a41fb1506d.tar.bz2
samba-3e8a6e576007892bab7d59367c5199a41fb1506d.zip
build: Remove sys_closedir wrapper
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index 4fd09260c6..86ea4a433f 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -8402,11 +8402,11 @@ enum usershare_err parse_usershare_file(TALLOC_CTX *ctx,
if (sys_stat(sharepath, &sbuf, false) == -1) {
DEBUG(2,("parse_usershare_file: share %s : stat failed on path %s. %s\n",
servicename, sharepath, strerror(errno) ));
- sys_closedir(dp);
+ closedir(dp);
return USERSHARE_POSIX_ERR;
}
- sys_closedir(dp);
+ closedir(dp);
if (!S_ISDIR(sbuf.st_ex_mode)) {
DEBUG(2,("parse_usershare_file: share %s path %s is not a directory.\n",
@@ -8862,7 +8862,7 @@ int load_usershare_shares(struct smbd_server_connection *sconn,
}
}
- sys_closedir(dp);
+ closedir(dp);
/* Sweep through and delete any non-refreshed usershares that are
not currently in use. */