mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-26 10:03:40 +03:00
networkd-wait-online: fix -i argument
-i (aka --interface) takes an argument. Tell getopt_long() that, so that optarg isn't NULL.
This commit is contained in:
parent
7189be2728
commit
baee30afce
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user