Skip to contentSkip to conversation

Make openvpn --version exit with exit code 0

PATCH Antonio Quartulli 2 participants 2 messages Jul 7, 2020 1 message not in the archive

lore
Share & tools
lore

Antonio Quartulli

author Acked-by
#1 lore raw
In reply to a message not in the archive

Hi,

Quoted 6 lines · Steffan Karger

For some reason, openvpn --version has since the beginning of time returned exit code 1. A quick sample among common unix utilities confirms that the rest of the world agrees with me that 0 makes more sense. Let's make openvpn --version exit with exit code 0 too.

I also agree with Steffan - if --version was passed as argument than "success" behaviour is to print the related text and exit with success.

Like he said, this is what most other unix command line tools do.

I quickly tested the patch and I can confirm it does what it says :)

Signature · 1 line
Antonio Quartulli
#2 lore raw
In reply to a message not in the archive

Simple and to the point :-) - much more commit message than code change.

Your patch has been applied to the master branch.

commit 96ae327add16f06ac8bc28cfbf9ba0abfcc7129c

Author: Steffan Karger
Date:   Tue Jul 7 16:26:21 2020 +0200
     Make openvpn --version exit with exit code 0

     Signed-off-by: Steffan Karger <[email protected]...>
     Acked-by: Antonio Quartulli <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/search?l=mid&[email protected]...
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering