summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/true.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/true.c b/src/true.c
index 004b77ef6..1d46f1427 100644
--- a/src/true.c
+++ b/src/true.c
@@ -47,7 +47,10 @@ main (int argc, char **argv)
usage (EXIT_SUCCESS);
if (STREQ (argv[1], "--version"))
- version_etc (stdout, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS);
+ {
+ version_etc (stdout, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS);
+ exit (EXIT_SUCCESS);
+ }
}
exit (EXIT_SUCCESS);