]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
profiles: don't ignore unknown options
authorRalph Boehme <slow@samba.org>
Fri, 10 Sep 2021 05:09:34 +0000 (07:09 +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/profiles.c

index 96b8c9dd82e041f9bad7861e4d94b4b16d795b07..ab1eb26e1482054a2402eaccb715ff6229e94b3f 100644 (file)
@@ -296,6 +296,11 @@ int main( int argc, const char *argv[] )
                        }
                        break;
 
+               case POPT_ERROR_BADOPT:
+                       fprintf(stderr, "\nInvalid option %s: %s\n\n",
+                               poptBadOption(pc, 0), poptStrerror(opt));
+                       poptPrintUsage(pc, stderr, 0);
+                       exit(1);
                }
        }