Skip to content
Snippets Groups Projects
Commit ddcd0620 authored by Steven Murray's avatar Steven Murray
Browse files

Fixed getuid() getgid() caching bug by removed the caching

parent 6c0a684d
Branches
Tags
No related merge requests found
......@@ -34,8 +34,6 @@
// constructor
//------------------------------------------------------------------------------
castor::legacymsg::RmcProxyTcpIp::RmcProxyTcpIp(log::Logger &log, const int netTimeout) throw():
m_uid(getuid()),
m_gid(getgid()),
m_log(log),
m_netTimeout(netTimeout) {
}
......@@ -131,8 +129,8 @@ void castor::legacymsg::RmcProxyTcpIp::mountTapeScsi(const std::string &vid, con
castor::utils::SmartFd fd(connectToRmc(parsedSlot.rmcHostName));
RmcMountMsgBody body;
body.uid = m_uid;
body.gid = m_gid;
body.uid = getuid();
body.gid = getgid();
castor::utils::copyString(body.vid, vid.c_str());
body.drvOrd = parsedSlot.drvOrd;
writeRmcMountMsg(fd.get(), body);
......@@ -246,8 +244,8 @@ void castor::legacymsg::RmcProxyTcpIp::unmountTapeScsi(const std::string &vid, c
castor::utils::SmartFd fd(connectToRmc(parsedSlot.rmcHostName));
RmcUnmountMsgBody body;
body.uid = m_uid;
body.gid = m_gid;
body.uid = getuid();
body.gid = getgid();
castor::utils::copyString(body.vid, vid.c_str());
body.drvOrd = parsedSlot.drvOrd;
body.force = 0;
......
......@@ -107,16 +107,6 @@ protected:
*/
static const int RMC_MSGBUFSIZ = 256;
/**
* The user ID of the current process.
*/
const uid_t m_uid;
/**
* The group ID of the current process.
*/
const gid_t m_gid;
/**
* The object representing the API of the CASTOR logging system.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment