mirror of
https://github.com/samba-team/samba.git
synced 2025-01-15 23:24:37 +03:00
Check for -1 not EOF as return value of poptGetNextOpt
(This used to be commit 84fba11ff0a649932e1f812408017ae4c5611083)
This commit is contained in:
parent
8a98adf7dd
commit
8213a4dc2e
@ -575,7 +575,7 @@ static int traverse_sessionid(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, vo
|
||||
pc = poptGetContext(NULL, argc, (const char **) argv, long_options,
|
||||
POPT_CONTEXT_KEEP_FIRST);
|
||||
|
||||
while ((c = poptGetNextOpt(pc)) != EOF) {
|
||||
while ((c = poptGetNextOpt(pc)) != -1) {
|
||||
switch (c) {
|
||||
case 'u':
|
||||
Ucrit_addUsername(poptGetOptArg(pc));
|
||||
|
Loading…
x
Reference in New Issue
Block a user