]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbcacls: don't ignore unknown options
authorRalph Boehme <slow@samba.org>
Fri, 10 Sep 2021 05:11:43 +0000 (07:11 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 10 Sep 2021 15:10:30 +0000 (15:10 +0000)
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>
source3/utils/smbcacls.c

index a2d6b6c849d6cc36606d30317377eb9f6625ab6f..661d4eacf3e334af886916e68f0e414745d18254 100644 (file)
@@ -1786,6 +1786,11 @@ int main(int argc, char *argv[])
                case 'x':
                        want_mxac = true;
                        break;
+               case POPT_ERROR_BADOPT:
+                       fprintf(stderr, "\nInvalid option %s: %s\n\n",
+                               poptBadOption(pc, 0), poptStrerror(opt));
+                       poptPrintUsage(pc, stderr, 0);
+                       exit(1);
                }
        }
        if (inheritance && !the_acl) {