]> granicus.if.org Git - ipset/commitdiff
Fixing dangling empty line produced backward-incompatible exit codes, fixed.
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 13 Dec 2010 11:25:21 +0000 (12:25 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 13 Dec 2010 11:25:21 +0000 (12:25 +0100)
src/ipset.c

index 241ed6a86146be7717de8275835d4b2eb6fcc421..91c1effba8f703d60af94c066a827cdef540a942 100644 (file)
@@ -46,10 +46,10 @@ extern struct ipset_type ipset_list_set0;
 
 enum exittype {
        NO_PROBLEM = 0,
-       SESSION_PROBLEM,
        OTHER_PROBLEM,
        PARAMETER_PROBLEM,
        VERSION_PROBLEM,
+       SESSION_PROBLEM,
 };
 
 static int __attribute__((format(printf,2,3)))
@@ -85,7 +85,7 @@ exit_error(int status, const char *msg, ...)
                ipset_session_fini(session);
 
        D("status: %u", status);
-       exit(status);
+       exit(status > VERSION_PROBLEM ? OTHER_PROBLEM : status);
        /* Unreached */
        return -1;
 }