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:
Lars Wendler 2020-03-21 07:42:47 +01:00 committed by GitHub
parent cba27361ca
commit 6b014be066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;