1
0
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:
Jelmer Vernooij 2003-04-16 14:24:45 +00:00
parent 8a98adf7dd
commit 8213a4dc2e

View File

@ -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));