]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/dird/admin.c
ebl Modify disk-changer to check if slot contains something before
[bacula/bacula] / bacula / src / dird / admin.c
index 2dec96b262a29db5f6f4503d45e32aab5ad047d7..390c3b3aa8f45159373763740fb9c9a6edec7a21 100644 (file)
@@ -7,8 +7,8 @@
    many others, a complete list can be found in the file AUTHORS.
    This program is Free Software; you can redistribute it and/or
    modify it under the terms of version two of the GNU General Public
-   License as published by the Free Software Foundation plus additions
-   that are listed in the file LICENSE.
+   License as published by the Free Software Foundation and included
+   in the file LICENSE.
 
    This program is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -45,6 +45,9 @@
 bool do_admin_init(JCR *jcr)
 {
    free_rstorage(jcr);
+   if (!allow_duplicate_job(jcr)) {
+      return false;
+   }
    return true;
 }