diff options
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 6 |
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. */ |