projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7189be2
)
networkd-wait-online: fix -i argument
author
Martin Pitt
<martin.pitt@ubuntu.com>
Sun, 26 Jul 2015 13:37:42 +0000
(15:37 +0200)
committer
Martin Pitt
<martin.pitt@ubuntu.com>
Sun, 26 Jul 2015 13:39:09 +0000
(15:39 +0200)
-i (aka --interface) takes an argument. Tell getopt_long() that, so that optarg
isn't NULL.
src/network/networkd-wait-online.c
patch
|
blob
|
history
diff --git
a/src/network/networkd-wait-online.c
b/src/network/networkd-wait-online.c
index
32c31fd
..
d958b48
100644
(file)
--- a/
src/network/networkd-wait-online.c
+++ b/
src/network/networkd-wait-online.c
@@
-66,7
+66,7
@@
static int parse_argv(int argc, char *argv[]) {
assert(argc >= 0);
assert(argv);
- while ((c = getopt_long(argc, argv, "+hiq", options, NULL)) >= 0)
+ while ((c = getopt_long(argc, argv, "+hi
:
q", options, NULL)) >= 0)
switch (c) {