diff options
author | Jim Meyering <jim@meyering.net> | 2002-07-20 15:18:37 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2002-07-20 15:18:37 +0000 |
commit | 334294f09d9cd1d2018469df512b65fcc2801b61 (patch) | |
tree | f70567fb98890c598e6735fec096f1b92c7715d4 /src | |
parent | 3f6c422f1ad7fe7935e4843461f5dd44d3576ade (diff) | |
download | coreutils-334294f09d9cd1d2018469df512b65fcc2801b61.tar.xz |
(main): Add an explicit `exit (EXIT_SUCCESS);'
for --version, rather than falling through.
Diffstat (limited to 'src')
-rw-r--r-- | src/true.c | 5 |
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); |