]> git.sur5r.net Git - bacula/bacula/commitdiff
bconsole: make problem in director selection fatal (exit=1)
authorEric Bollengier <eric@eb.homelinux.org>
Wed, 24 Feb 2010 16:40:17 +0000 (17:40 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 2 Aug 2010 14:49:34 +0000 (16:49 +0200)
bacula/src/console/console.c

index 761c21a5616b4ebc26ce3c9deee2b51b16d48839..5ea90ec202584d5df0ca1883492bc17a23c5dec2 100644 (file)
@@ -1132,7 +1132,7 @@ int main(int argc, char *argv[])
    start_watchdog();                        /* Start socket watchdog */
 
    if(!select_director(director, &dir, &cons)) {
-      return 0;
+      return 1;
    }
 
    senditf(_("Connecting to Director %s:%d\n"), dir->address,dir->DIRport);