From fe526bb32b7d65be10a05d2525b36f004215b003 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 28 Mar 2012 13:01:19 +1100 Subject: build: Remove sys_opendir wrapper --- source3/utils/net_usershare.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/utils') diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c index 8f77f73994..b9e0cb5152 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, -- cgit