Trim symbolic link original path in file.

This commit is contained in:
Takeshi Nakatani 2016-10-11 10:22:30 +00:00
parent 5db369d67e
commit 7fabd18b1f

View File

@ -868,7 +868,6 @@ static int s3fs_readlink(const char* path, char* buf, size_t size)
// check buf if it has space words.
string strTmp = trim(string(buf));
ressize = static_cast<ssize_t>(strTmp.length());
strcpy(buf, strTmp.c_str());
FdManager::get()->Close(ent);