From 8b3efe9a2f526f3a7ece76b63b66b84eff7ac911 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 10 Apr 1999 23:59:55 +0000 Subject: [PATCH] (main): use print_version git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5922 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/login/login.c | 6 ++++-- appl/popper/pop_debug.c | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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; }