From 9a260e3e673b2c210c6d0130149925834cc72627 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 24 Feb 2007 21:53:05 +0000 Subject: [PATCH] ebl fix fifo stuff, bacula tries to rewind the fifo... Thanks to Andreas git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.0@4236 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/dev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index 491149be00..b61d21624a 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -382,7 +382,8 @@ void DEVICE::open_tape_device(DCR *dcr, int omode) Dmsg0(050, "Rewind after open\n"); mt_com.mt_op = MTREW; mt_com.mt_count = 1; - if (ioctl(fd, MTIOCTOP, (char *)&mt_com) < 0) { + /* rewind only if dev is a tape */ + if (is_tape() && (ioctl(m_fd, MTIOCTOP, (char *)&mt_com) < 0)) { berrno be; dev_errno = errno; /* set error status from rewind */ ::close(fd); -- 2.39.5