s4:regshell - don't use negative exit codes
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 27 May 2010 15:00:50 +0000 (17:00 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Fri, 28 May 2010 08:04:45 +0000 (10:04 +0200)
source4/lib/registry/tools/regshell.c

index 3a8c62d1ce8564df102b51d7306d91cc6c714e9a..d25fee14fd3bd473b40c23e704e49354ccaf8153 100644 (file)
@@ -614,7 +614,7 @@ int main(int argc, char **argv)
 
        if (ctx->current == NULL) {
                fprintf(stderr, "Unable to access any of the predefined keys\n");
-               return -1;
+               return 1;
        }
 
        poptFreeContext(pc);