From 0c78e663f1044028f12fc3252b1d002621b0435c Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 17 Jan 2008 15:06:17 +0000 Subject: [PATCH] ebl Fix a bug during tape initialization with MTSETDRVBUFFER. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6296 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/stored/dev.c | 2 +- bacula/technotes-2.3 | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index 31b6f6ec4a..b8ef18713d 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -2385,7 +2385,7 @@ void set_os_device_parameters(DCR *dcr) } #endif #if defined(MTSETDRVBUFFER) - if (getpid() == 0) { /* Only root can do this */ + if (getuid() == 0) { /* Only root can do this */ mt_com.mt_op = MTSETDRVBUFFER; mt_com.mt_count = MT_ST_CLEARBOOLEANS; if (!dev->has_cap(CAP_TWOEOF)) { diff --git a/bacula/technotes-2.3 b/bacula/technotes-2.3 index 20d33f5dd4..22e87e8e21 100644 --- a/bacula/technotes-2.3 +++ b/bacula/technotes-2.3 @@ -1,6 +1,8 @@ Technical notes on version 2.3 General: +17Jan08 +ebl Fix a bug during tape initialization with MTSETDRVBUFFER. 12Jan08 kes Fix Win32 build with new .def files and DLL_IMP_EXP ... 10Jan08 -- 2.39.5