]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/os.c
Skip tape ioctls on FreeBSD when using a FIFO fixes bug #2324
[bacula/bacula] / bacula / src / stored / os.c
index 2f754eb25b6a1f6502eaace99114dca395094876..c8ec1cce1eeec294a77e4e6582a944d015a89f47 100644 (file)
@@ -1,7 +1,7 @@
 /*
    Bacula(R) - The Network Backup Solution
 
-   Copyright (C) 2000-2016 Kern Sibbald
+   Copyright (C) 2000-2017 Kern Sibbald
 
    The original author of Bacula is Kern Sibbald, with contributions
    from many others, a complete list can be found in the file AUTHORS.
@@ -11,7 +11,7 @@
    Public License, v3.0 ("AGPLv3") and some additional permissions and
    terms pursuant to its AGPLv3 Section 7.
 
-   This notice must be preserved when any source code is 
+   This notice must be preserved when any source code is
    conveyed and/or propagated.
 
    Bacula(R) is a registered trademark of Kern Sibbald.
@@ -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;