]> git.sur5r.net Git - bacula/bacula/commitdiff
Skip tape ioctls on FreeBSD when using a FIFO fixes bug #2324
authorKern Sibbald <kern@sibbald.com>
Sun, 29 Oct 2017 16:12:33 +0000 (17:12 +0100)
committerKern Sibbald <kern@sibbald.com>
Sun, 29 Oct 2017 16:12:33 +0000 (17:12 +0100)
bacula/src/stored/os.c

index 0d181e522f29e829db6e6c4c19d56eb8891b7391..c8ec1cce1eeec294a77e4e6582a944d015a89f47 100644 (file)
@@ -116,6 +116,9 @@ void set_os_device_parameters(DCR *dcr)
       }
    }
 #if defined(MTIOCSETEOTMODEL)
+   if (dev->is_fifo()) {
+      return;   /* do not do tape stuff */
+   }
    uint32_t neof;
    if (dev->has_cap(CAP_TWOEOF)) {
       neof = 2;