From 6fc3997307b1a2729dcc651102e79b195698b6af Mon Sep 17 00:00:00 2001 From: Arlo Breault Date: Fri, 7 Jun 2013 11:24:39 -0700 Subject: [PATCH] Fix tor-fw-helper exit code. It's returning the number of initialized backends. (changes file added by nickm; this is a fix for bug #9030) --- changes/bug9030 | 4 ++++ src/tools/tor-fw-helper/tor-fw-helper.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 changes/bug9030 diff --git a/changes/bug9030 b/changes/bug9030 new file mode 100644 index 0000000000..d0be582929 --- /dev/null +++ b/changes/bug9030 @@ -0,0 +1,4 @@ + o Minor bugfixes: + - The tor-fw-helper program now follows the standard convention and + exits with status code "0" on success. Fixes bug 9030; bugfix on + 0.2.3.1-alpha. Patch by Arlo Breault. diff --git a/src/tools/tor-fw-helper/tor-fw-helper.c b/src/tools/tor-fw-helper/tor-fw-helper.c index bb6e70aaa3..84cc21e346 100644 --- a/src/tools/tor-fw-helper/tor-fw-helper.c +++ b/src/tools/tor-fw-helper/tor-fw-helper.c @@ -496,6 +496,6 @@ main(int argc, char **argv) smartlist_free(tor_fw_options.ports_to_forward); } - exit(r); + exit(0); }