diff --git a/appl/login/login.c b/appl/login/login.c index c2673f54a..165e5cae4 100644 --- a/appl/login/login.c +++ b/appl/login/login.c @@ -376,8 +376,10 @@ main(int argc, char **argv) if(help_flag) usage(0); - if (version_flag) - errx(0, "%s version %s", PACKAGE, VERSION); + if (version_flag) { + print_version (NULL); + return 0; + } if (geteuid() != 0) err(1, "only root may use login, use su"); diff --git a/appl/popper/pop_debug.c b/appl/popper/pop_debug.c index 8d15d09c1..28a41678c 100644 --- a/appl/popper/pop_debug.c +++ b/appl/popper/pop_debug.c @@ -225,7 +225,7 @@ main(int argc, char **argv) usage (0); if (do_version) { - printf ("%s (%s-%s)\n", __progname, PACKAGE, VERSION); + print_version (NULL); return 0; }