diff options
author | Tim Potter <tpot@samba.org> | 2001-06-27 04:43:55 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-06-27 04:43:55 +0000 |
commit | 39a265ae20a7ffcc264db6ab2838f40e90db5bf4 (patch) | |
tree | 235fd687ca1a8a87f03c7dfa6ae9ad162637a23c /source3 | |
parent | d088d8e9d07e28e43f56e4f380faca694e19b202 (diff) | |
download | samba-39a265ae20a7ffcc264db6ab2838f40e90db5bf4.tar.gz samba-39a265ae20a7ffcc264db6ab2838f40e90db5bf4.tar.bz2 samba-39a265ae20a7ffcc264db6ab2838f40e90db5bf4.zip |
Added some missing entries to usage().
Added -d option to set debug level.
(This used to be commit 9874df0c2242ee46182744eabae14829c3b5f21e)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/smbcacls.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 08c3fecbb9..f07bdb0dd8 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -788,6 +788,8 @@ static void usage(void) \t-G username change group ownership of a file\n\ \t-n don't resolve sids or masks to names\n\ \t-h print help\n\ +\t-d debuglevel set debug output level\n\ +\t-U username user to autheticate as\n\ \n\ The username can be of the form username%%password or\n\ workgroup\\username%%password.\n\n\ @@ -855,7 +857,7 @@ You can string acls together with spaces, commas or newlines\n\ } } - while ((opt = getopt(argc, argv, "U:nhS:D:A:M:C:G:t")) != EOF) { + while ((opt = getopt(argc, argv, "U:nhS:D:A:M:C:G:td:")) != EOF) { switch (opt) { case 'U': pstrcpy(username,optarg); @@ -910,6 +912,10 @@ You can string acls together with spaces, commas or newlines\n\ talloc_destroy(ctx); exit(EXIT_PARSE_ERROR); + case 'd': + DEBUGLEVEL = atoi(optarg); + break; + default: printf("Unknown option %c (%d)\n", (char)opt, opt); talloc_destroy(ctx); |