cli: return the ubus ret code
authorFelix Fietkau <nbd@openwrt.org>
Fri, 4 Feb 2011 23:02:22 +0000 (00:02 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 4 Feb 2011 23:02:22 +0000 (00:02 +0100)
cli.c

diff --git a/cli.c b/cli.c
index 54db4a2..c0521fa 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -78,5 +78,5 @@ int main(int argc, char **argv)
                fprintf(stderr, "Failed: %s\n", ubus_strerror(ret));
 
        ubus_free(ctx);
-       return 0;
+       return ret;
 }