mirror of
https://github.com/paulusmack/ppp.git
synced 2024-11-23 10:23:26 +08:00
pppd: Print version information to stdout instead of stderr (#133)
This makes it easier for scripts to parse the output if necessary Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
parent
cba27361ca
commit
6b014be066
@ -1093,7 +1093,7 @@ showversion(argv)
|
||||
char **argv;
|
||||
{
|
||||
if (phase == PHASE_INITIALIZE) {
|
||||
fprintf(stderr, "pppd version %s\n", VERSION);
|
||||
fprintf(stdout, "pppd version %s\n", VERSION);
|
||||
exit(0);
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user