struct smbc_dirent *dirent = NULL;
bool ok;
int ret, result = 1;
+ int opt;
int debuglevel;
/* Initialise samba stuff */
exit(1);
}
- while(poptGetNextOpt(pc) != -1);
+ while((opt = poptGetNextOpt(pc)) != -1) {
+ switch (opt) {
+ case POPT_ERROR_BADOPT:
+ fprintf(stderr, "\nInvalid option %s: %s\n\n",
+ poptBadOption(pc, 0), poptStrerror(opt));
+ poptPrintUsage(pc, stderr, 0);
+ exit(1);
+ }
+ }
+
samba_cmdline_burn(argc, argv);
debuglevel = DEBUGLEVEL;