Commit 81ffb926 authored by Mihai Patrascoiu's avatar Mihai Patrascoiu

MGM: Print file path in touch error message

parent 7fe13a10
Pipeline #471137 passed with stages
in 71 minutes and 54 seconds
......@@ -135,7 +135,7 @@ StringTokenizer::GetLine()
}
//------------------------------------------------------------------------------
// Return next parsed space seperated token taking into account escaped
// Return next parsed space separated token taking into account escaped
// blanks and quoted strings
//------------------------------------------------------------------------------
const char*
......
......@@ -255,7 +255,7 @@ jump_handler(int a)
}
//------------------------------------------------------------------------------
// Absolut path conversion funcion
// Absolute path conversion function
//------------------------------------------------------------------------------
const char*
abspath(const char* in)
......@@ -273,10 +273,10 @@ abspath(const char* in)
if (getcwd(pwd, sizeof(pwd))) {
XrdOucString lpwd = pwd;
if (lpwd.beginswith("/eos")) {
inpath = pwd;
inpath += "/";
inpath = pwd;
inpath += "/";
} else {
inpath = gPwd;
inpath = gPwd;
}
} else {
inpath = gPwd;
......
......@@ -1216,7 +1216,9 @@ ProcCommand::File()
retc = ENOENT;
} else {
if (gOFS->_touch(spath.c_str(), *mError, *pVid, 0)) {
stdErr = "error: unable to touch";
stdErr = "error: unable to touch '";
stdErr += spath.c_str();
stdErr += "'";
retc = errno;
} else {
stdOut += "success: touched '";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment