git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nmblookup: don't ignore unknown options
[samba.git]
/
source3
/
utils
/
nmblookup.c
diff --git
a/source3/utils/nmblookup.c
b/source3/utils/nmblookup.c
index 86902941746c2b396d6f4146120065dc0b80688a..a78967fdb886bd40315fcf6e6d1f748199fed73d 100644
(file)
--- a/
source3/utils/nmblookup.c
+++ b/
source3/utils/nmblookup.c
@@
-389,6
+389,11
@@
int main(int argc, const char *argv[])
case 'T':
translate_addresses = !translate_addresses;
break;
+ case POPT_ERROR_BADOPT:
+ fprintf(stderr, "\nInvalid option %s: %s\n\n",
+ poptBadOption(pc, 0), poptStrerror(opt));
+ poptPrintUsage(pc, stderr, 0);
+ exit(1);
}
}