]> git.sur5r.net Git - bacula/bacula/commitdiff
Don't try to ioctl() /dev/null
authorKern Sibbald <kern@sibbald.com>
Fri, 4 May 2007 18:36:30 +0000 (18:36 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 4 May 2007 18:36:30 +0000 (18:36 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4698 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/stored/dev.c

index 4c9e0d20c0780f9b6bac11901125e8b223e95bc9..143eaab02146599e23ae3384b72715f8aeee765c 100644 (file)
@@ -2390,6 +2390,10 @@ void set_os_device_parameters(DCR *dcr)
 {
    DEVICE *dev = dcr->dev;
 
+   if (strcmp(dev->dev_name, "/dev/null") == 0) {
+      return;                            /* no use trying to set /dev/null */
+   }
+
 #if defined(HAVE_LINUX_OS) || defined(HAVE_WIN32)
    struct mtop mt_com;