From 39a265ae20a7ffcc264db6ab2838f40e90db5bf4 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 27 Jun 2001 04:43:55 +0000 Subject: Added some missing entries to usage(). Added -d option to set debug level. (This used to be commit 9874df0c2242ee46182744eabae14829c3b5f21e) --- source3/utils/smbcacls.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'source3') 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); -- cgit