diff options
author | randomdan <randomdan@localhost> | 2011-02-24 00:23:57 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-02-24 00:23:57 +0000 |
commit | 8eb767ad045fd063337fecb51d2050a16eb01fc1 (patch) | |
tree | d0644603e626d57f1f6579825a5794ab3820ae5f | |
parent | Finally convert ytfs to use boost stuff (untested, but it does build) (diff) | |
download | netfs-8eb767ad045fd063337fecb51d2050a16eb01fc1.tar.bz2 netfs-8eb767ad045fd063337fecb51d2050a16eb01fc1.tar.xz netfs-8eb767ad045fd063337fecb51d2050a16eb01fc1.zip |
Use lchown, not chown
-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; |