From: Eric Bollengier Date: Thu, 17 Jan 2008 15:06:17 +0000 (+0000) Subject: ebl Fix a bug during tape initialization with MTSETDRVBUFFER. X-Git-Tag: Release-7.0.0~5120 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0c78e663f1044028f12fc3252b1d002621b0435c;p=bacula%2Fbacula 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 --- 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