summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--netfs/daemonMisc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/netfs/daemonMisc.cpp b/netfs/daemonMisc.cpp
index e584c4f..d5ccbba 100644
--- a/netfs/daemonMisc.cpp
+++ b/netfs/daemonMisc.cpp
@@ -3,6 +3,7 @@
#include <unistd.h>
#include <sys/stat.h>
#include <limits.h>
+#include <fcntl.h>
#include "daemonFileSystem.h"
extern std::map<Ice::Int, int> files;
@@ -127,7 +128,7 @@ FileSystemServer::utimens(const NetFSComms::ReqEnv & re, const std::string & pat
times[0].tv_nsec = ns0;
times[1].tv_sec = s1;
times[1].tv_nsec = ns1;
- if (::utimensat(0, (sess->exportCfg->root / path).string().c_str(), times, 0) != 0) {
+ if (::utimensat(0, (sess->exportCfg->root / path).string().c_str(), times, AT_SYMLINK_NOFOLLOW) != 0) {
throw NetFSComms::SystemError(errno);
}
// s.replicatedRequest = true;