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

index 7c9982b33e9b5a55c431118d22d8d636f9b95dd3..cf32229f303d681f898b74ae9b7846aea4ff9a7d 100644 (file)
@@ -1198,6 +1198,12 @@ out_free:
                                result = 1;
                                goto done;
                        }
+                       break;
+               case POPT_ERROR_BADOPT:
+                       fprintf(stderr, "\nInvalid option %s: %s\n\n",
+                               poptBadOption(pc, 0), poptStrerror(opt));
+                       poptPrintUsage(pc, stderr, 0);
+                       exit(1);
                }
        }