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 54db4a224738341a3a69b2be78547fd41838b01b..c0521faaa284046dd4fdae316faa9ae891480b0e 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;
 }