OSDN Git Service
(root)
/
pg-rex
/
syncrep.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
790259a
)
Fix for "--" options. Allow --xxx as a valid flag, from NetBSD fix.
author
Bruce Momjian
<bruce@momjian.us>
Mon, 26 Nov 2001 19:30:58 +0000
(19:30 +0000)
committer
Bruce Momjian
<bruce@momjian.us>
Mon, 26 Nov 2001 19:30:58 +0000
(19:30 +0000)
src/utils/getopt.c
patch
|
blob
|
history
diff --git
a/src/utils/getopt.c
b/src/utils/getopt.c
index
4426313
..
bbe81c1
100644
(file)
--- a/
src/utils/getopt.c
+++ b/
src/utils/getopt.c
@@
-71,7
+71,7
@@
const char *ostr;
place = EMSG;
return -1;
}
- if (place[1] && *++place == '-')
+ if (place[1] && *++place == '-'
&& place[1] == '\0'
)
{ /* found "--" */
++optind;
place = EMSG;