summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-02-24 00:23:57 +0000
committerrandomdan <randomdan@localhost>2011-02-24 00:23:57 +0000
commit8eb767ad045fd063337fecb51d2050a16eb01fc1 (patch)
treed0644603e626d57f1f6579825a5794ab3820ae5f
parentFinally convert ytfs to use boost stuff (untested, but it does build) (diff)
downloadnetfs-8eb767ad045fd063337fecb51d2050a16eb01fc1.tar.bz2
netfs-8eb767ad045fd063337fecb51d2050a16eb01fc1.tar.xz
netfs-8eb767ad045fd063337fecb51d2050a16eb01fc1.zip
Use lchown, not chown
-rw-r--r--netfs/daemonMisc.cpp2
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;