]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix dev.c return codes
authorKern Sibbald <kern@sibbald.com>
Mon, 26 Jul 2004 15:15:19 +0000 (15:15 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 26 Jul 2004 15:15:19 +0000 (15:15 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1490 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/dev.c

index 658ea1aad1caf2c9473d0fc4918c42ced8813178..a7141b2c26b17183af73a4419b92034eb45ee1cc 100644 (file)
@@ -743,7 +743,7 @@ bool offline_dev(DEVICE *dev)
       return false;
    }
    Dmsg1(100, "Offlined device %s\n", dev->dev_name);
-   return false;
+   return true;
 }
 
 int offline_or_rewind_dev(DEVICE *dev)
@@ -1110,7 +1110,7 @@ reposition_dev(DEVICE *dev, uint32_t file, uint32_t block)
       Dmsg1(100, "fsr %d\n", block-dev->block_num);
       return fsr_dev(dev, block-dev->block_num);
    }
-   return false;
+   return true;
 }