From 8eb767ad045fd063337fecb51d2050a16eb01fc1 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 24 Feb 2011 00:23:57 +0000 Subject: Use lchown, not chown --- netfs/daemonMisc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3