From 6457aa352c6e68e6eda99da79f12ba1f7cd91755 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Fri, 4 May 2007 18:36:30 +0000 Subject: [PATCH] Don't try to ioctl() /dev/null git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4698 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/dev.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index 4c9e0d20c0..143eaab021 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -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; -- 2.39.5