diff options
-rw-r--r-- | netfs/daemonMisc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netfs/daemonMisc.cpp b/netfs/daemonMisc.cpp index 9b76d8e..d6197a3 100644 --- a/netfs/daemonMisc.cpp +++ b/netfs/daemonMisc.cpp @@ -128,7 +128,7 @@ FileSystemServer::chown(const NetFSComms::ReqEnv & re, const std::string & path, errno = 0; boost::filesystem::path p = sess->exportCfg->root / path; sess.unlock(); - if (::chown(p.string().c_str(), uid, gid) != 0) { + if (::lchown(p.string().c_str(), uid, gid) != 0) { throw NetFSComms::SystemError(errno); } // s.replicatedRequest = true; |