From: Kern Sibbald Date: Sun, 29 Oct 2017 16:12:33 +0000 (+0100) Subject: Skip tape ioctls on FreeBSD when using a FIFO fixes bug #2324 X-Git-Tag: Release-9.0.5~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d1a3f3f6455e71a935916ba1df89ff0dffb0f492;p=bacula%2Fbacula Skip tape ioctls on FreeBSD when using a FIFO fixes bug #2324 --- diff --git a/bacula/src/stored/os.c b/bacula/src/stored/os.c index 0d181e522f..c8ec1cce1e 100644 --- a/bacula/src/stored/os.c +++ b/bacula/src/stored/os.c @@ -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;