From d41485f12e8b72d6d01165d461966e22bb5d1331 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 25 Oct 2017 12:44:06 +0100 Subject: Relax mode checking in unlink as it is actually too strict --- netfs/daemon/daemonVolume.cpp | 1 - 1 file changed, 1 deletion(-) 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); -- cgit v1.2.3