]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix
authorEric Bollengier <eric@eb.homelinux.org>
Mon, 26 Feb 2007 09:58:57 +0000 (09:58 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 26 Feb 2007 09:58:57 +0000 (09:58 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.0@4258 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/dev.c

index b61d21624a9c47bd2791260b4039d63def03a420..f0d66c861e4b0a4c90dae0b3b9f31076fbe6b8a2 100644 (file)
@@ -383,7 +383,7 @@ void DEVICE::open_tape_device(DCR *dcr, int omode)
          mt_com.mt_op = MTREW;
          mt_com.mt_count = 1;
          /* rewind only if dev is a tape */
-         if (is_tape() && (ioctl(m_fd, MTIOCTOP, (char *)&mt_com) < 0)) {
+         if (is_tape() && (ioctl(fd, MTIOCTOP, (char *)&mt_com) < 0)) {
             berrno be;
             dev_errno = errno;           /* set error status from rewind */
             ::close(fd);