summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-28 21:42:20 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:06 -0500
commit55f8ed0a815cfd1563a835b1a73c0c880299a831 (patch)
treef471a83c7ed655d3778069c84c604c1423b7aa30
parent68e4fc80668d3c0147536888cb40d0336dd832e5 (diff)
downloadsamba-55f8ed0a815cfd1563a835b1a73c0c880299a831.tar.gz
samba-55f8ed0a815cfd1563a835b1a73c0c880299a831.tar.bz2
samba-55f8ed0a815cfd1563a835b1a73c0c880299a831.zip
r16652: Fix bug #3891 reported by jason@ncac.gwu.edu.
Jeremy. (This used to be commit 9b0df8d008bc5574526d68628f351eb4dbf98e8a)
-rw-r--r--source3/utils/net_usershare.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/utils/net_usershare.c b/source3/utils/net_usershare.c
index 09ef8bd97f..7d6f8d56e2 100644
--- a/source3/utils/net_usershare.c
+++ b/source3/utils/net_usershare.c
@@ -368,13 +368,10 @@ static int info_fn(struct file_list *fl, void *priv)
pstrcpy(acl_str, "usershare_acl=");
for (num_aces = 0; num_aces < psd->dacl->num_aces; num_aces++) {
- char access_str[2];
const char *domain;
const char *name;
NTSTATUS ntstatus;
- access_str[1] = '\0';
-
ntstatus = net_lookup_name_from_sid(ctx, &psd->dacl->ace[num_aces].trustee, &domain, &name);
if (NT_STATUS_IS_OK(ntstatus)) {
@@ -765,7 +762,7 @@ static int net_usershare_add(int argc, const char **argv)
const char *my_argv[2];
my_argv[0] = sharename;
my_argv[1] = NULL;
- net_usershare_info(1, argv);
+ net_usershare_info(1, my_argv);
}
SAFE_FREE(sharename);