mirror of
https://github.com/samba-team/samba.git
synced 2025-03-11 16:58:40 +03:00
sharesec: don't ignore unknown options
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14828 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 5a2b4ba059809a1e16124bf448a9398822fe5c80)
This commit is contained in:
parent
9af6e536ed
commit
eeebabe406
@ -515,6 +515,11 @@ int main(int argc, const char *argv[])
|
||||
case OPT_VIEW_ALL:
|
||||
mode = SMB_ACL_VIEW_ALL;
|
||||
break;
|
||||
case POPT_ERROR_BADOPT:
|
||||
fprintf(stderr, "\nInvalid option %s: %s\n\n",
|
||||
poptBadOption(pc, 0), poptStrerror(opt));
|
||||
poptPrintUsage(pc, stderr, 0);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user