From 55f8ed0a815cfd1563a835b1a73c0c880299a831 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 28 Jun 2006 21:42:20 +0000 Subject: r16652: Fix bug #3891 reported by jason@ncac.gwu.edu. Jeremy. (This used to be commit 9b0df8d008bc5574526d68628f351eb4dbf98e8a) --- source3/utils/net_usershare.c | 5 +---- 1 file changed, 1 insertion(+), 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); -- cgit