mirror of
https://github.com/sheumann/hush.git
synced 2025-01-12 14:30:54 +00:00
"This function was not updating the argc and argv pointers to reflect
the arguments it consumed, which means the calling function encountered them as well. As a result, a command like "ip -6 addr" was yielding a usage error." - Philip Blundell
This commit is contained in:
parent
62b031fb82
commit
08dea3e5a7
@ -71,4 +71,6 @@ void ip_parse_common_args(int *argcp, char ***argvp)
|
|||||||
argc--; argv++;
|
argc--; argv++;
|
||||||
}
|
}
|
||||||
_SL_ = oneline ? "\\" : "\n" ;
|
_SL_ = oneline ? "\\" : "\n" ;
|
||||||
|
*argcp = argc;
|
||||||
|
*argvp = argv;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user