diff options
Diffstat (limited to 'netfs/daemon/daemonVolume.cpp')
-rw-r--r-- | netfs/daemon/daemonVolume.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/netfs/daemon/daemonVolume.cpp b/netfs/daemon/daemonVolume.cpp index 0556d9a..afc0d36 100644 --- a/netfs/daemon/daemonVolume.cpp +++ b/netfs/daemon/daemonVolume.cpp @@ -249,6 +249,9 @@ VolumeServer::open(const NetFS::ReqEnv & re, const std::string & path, Ice::Int errno = 0; boost::filesystem::path p(resolvePath(path)); tp.AssertRead(p); + if (flags & O_CREAT) { + throw NetFS::SystemError(EINVAL); + } int fd = ::open(p.string().c_str(), flags); if (fd == -1) { throw NetFS::SystemError(errno); |