git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7176f75
)
Check whether return status of poptGetNextOpt is -1, not EOF
author
Jelmer Vernooij
<jelmer@samba.org>
Wed, 16 Apr 2003 14:31:10 +0000
(14:31 +0000)
committer
Jelmer Vernooij
<jelmer@samba.org>
Wed, 16 Apr 2003 14:31:10 +0000
(14:31 +0000)
(This used to be commit
1fefb776eec94efc7ea1b760dc4b80f61d61a158
)
source3/utils/status.c
patch
|
blob
|
history
diff --git
a/source3/utils/status.c
b/source3/utils/status.c
index 7e87701752a1e150af2f8af1d0a865a35b1412bd..bbaeecdd6bb2686ef6ca4db7518b2b0b349748fb 100644
(file)
--- 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));