diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2003-04-16 14:31:10 +0000 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2003-04-16 14:31:10 +0000 |
commit | 0abad3ad5cf467649ebc05a190cc34a7616fa271 (patch) | |
tree | 4d5d8466a454e1ceb661be5e3d680f05f6007c23 /source3 | |
parent | 7176f75036a63c712f16e446267b29a9878d0b1b (diff) | |
download | samba-0abad3ad5cf467649ebc05a190cc34a7616fa271.tar.gz samba-0abad3ad5cf467649ebc05a190cc34a7616fa271.tar.bz2 samba-0abad3ad5cf467649ebc05a190cc34a7616fa271.zip |
Check whether return status of poptGetNextOpt is -1, not EOF
(This used to be commit 1fefb776eec94efc7ea1b760dc4b80f61d61a158)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/status.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c index 7e87701752..bbaeecdd6b 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -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)); |