From 6b014be066bd8ff051dbabab9e944a691c48a14e Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Sat, 21 Mar 2020 07:42:47 +0100 Subject: [PATCH] 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 --- pppd/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pppd/options.c b/pppd/options.c index aecb930..e08c108 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -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;