summaryrefslogtreecommitdiff
path: root/source3/utils/net_usershare.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-28 13:01:19 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-04-05 02:39:09 +0200
commitfe526bb32b7d65be10a05d2525b36f004215b003 (patch)
treead05557880529acfe09c4ffb8bd30ffdac6a55a1 /source3/utils/net_usershare.c
parentb74fe73a6fb5862121235f18bc1dfe538e6ceaed (diff)
downloadsamba-fe526bb32b7d65be10a05d2525b36f004215b003.tar.gz
build: Remove sys_opendir wrapper
Diffstat (limited to 'source3/utils/net_usershare.c')
-rw-r--r--source3/utils/net_usershare.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c
index 8f77f739947..b9e0cb51522 100644
--- a/source3/utils/net_usershare.c
+++ b/source3/utils/net_usershare.c
@@ -217,7 +217,7 @@ static int get_share_list(TALLOC_CTX *ctx, const char *wcard, bool only_ours)
if (!basepath) {
return -1;
}
- dp = sys_opendir(basepath);
+ dp = opendir(basepath);
if (!dp) {
d_fprintf(stderr,
_("get_share_list: cannot open usershare directory %s. "
@@ -556,7 +556,7 @@ static int count_num_usershares(void)
return -1;
}
- dp = sys_opendir(basepath);
+ dp = opendir(basepath);
if (!dp) {
d_fprintf(stderr,
_("count_num_usershares: cannot open usershare "
@@ -1104,7 +1104,7 @@ int net_usershare(struct net_context *c, int argc, const char **argv)
return -1;
}
- dp = sys_opendir(lp_usershare_path());
+ dp = opendir(lp_usershare_path());
if (!dp) {
int err = errno;
d_fprintf(stderr,