commit 6fc3997307b1a2729dcc651102e79b195698b6af Author: Arlo Breault arlolra@gmail.com Date: Fri Jun 7 11:24:39 2013 -0700
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(-)
diff --git a/changes/bug9030 b/changes/bug9030 new file mode 100644 index 0000000..d0be582 --- /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 bb6e70a..84cc21e 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); }