From: Kern Sibbald Date: Fri, 4 May 2007 18:36:30 +0000 (+0000) Subject: Don't try to ioctl() /dev/null X-Git-Tag: Release-7.0.0~6433 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6457aa352c6e68e6eda99da79f12ba1f7cd91755;p=bacula%2Fbacula Don't try to ioctl() /dev/null git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@4698 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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;