summaryrefslogtreecommitdiff
path: root/source3/utils/sharesec.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-07-14 17:46:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:21 -0500
commit1f2419d9f8be0efcf2e43ecf97ea59d501e62fe8 (patch)
tree81826820870d59ea732c8a933f7bcd0d0cc735d7 /source3/utils/sharesec.c
parent2a2d67f5adb29ed602e751141ab2c0937bfa1b73 (diff)
downloadsamba-1f2419d9f8be0efcf2e43ecf97ea59d501e62fe8.tar.gz
samba-1f2419d9f8be0efcf2e43ecf97ea59d501e62fe8.tar.bz2
samba-1f2419d9f8be0efcf2e43ecf97ea59d501e62fe8.zip
r17032: I thought I had already merged this from trunk:
> r16959 | vlendec | 2006-07-11 23:10:44 +0200 (Di, 11 Jul 2006) | 1 line > > get_share_security does not need snum, activate RPC-SAMBA3-SRVSVC Volker (This used to be commit c89471e15766fcdbfa4f40701e12c19f95c2d8ef)
Diffstat (limited to 'source3/utils/sharesec.c')
-rw-r--r--source3/utils/sharesec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/utils/sharesec.c b/source3/utils/sharesec.c
index aa4210b51d..3f66d4da6e 100644
--- a/source3/utils/sharesec.c
+++ b/source3/utils/sharesec.c
@@ -382,7 +382,8 @@ int main(int argc, const char *argv[])
switch ( mode ) {
case SMB_ACL_VIEW:
- if (!(secdesc = get_share_security( ctx, snum, &sd_size )) ) {
+ if (!(secdesc = get_share_security( ctx, sharename,
+ &sd_size )) ) {
fprintf(stderr, "Unable to retrieve permissions for share [%s]\n", sharename);
return -1;
}