summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-10-25 12:44:06 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-10-25 12:44:06 +0100
commitd41485f12e8b72d6d01165d461966e22bb5d1331 (patch)
treec61a61b17d445b7fe4320b5e54dd065d247e8d5e
parentAdd missing test for chmoding a missing file (diff)
downloadnetfs-d41485f12e8b72d6d01165d461966e22bb5d1331.tar.bz2
netfs-d41485f12e8b72d6d01165d461966e22bb5d1331.tar.xz
netfs-d41485f12e8b72d6d01165d461966e22bb5d1331.zip
Relax mode checking in unlink as it is actually too strict
-rw-r--r--netfs/daemon/daemonVolume.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/netfs/daemon/daemonVolume.cpp b/netfs/daemon/daemonVolume.cpp
index 4dcf8f1..2c2d670 100644
--- a/netfs/daemon/daemonVolume.cpp
+++ b/netfs/daemon/daemonVolume.cpp
@@ -221,7 +221,6 @@ VolumeServer::unlink(const NetFS::ReqEnv & re, const std::string & path, const I
ModeCheck mc(re, root, userLookup, groupLookup);
errno = 0;
boost::filesystem::path p(resolvePath(path));
- mc.AssertWrite(p);
mc.AssertWriteParent(p);
if (::unlink(p.c_str()) != 0) {
throw NetFS::SystemError(errno);