summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-12-08 20:57:36 +0000
committerrandomdan <randomdan@localhost>2010-12-08 20:57:36 +0000
commitd22d9eb8304ebfaf0e5f9175ce4ab5d82c82ec30 (patch)
tree5e66449d415f5ed9a2bc810ab1995751799ec75d
parentFix no follow symlink in utimens (diff)
downloadnetfs-d22d9eb8304ebfaf0e5f9175ce4ab5d82c82ec30.tar.bz2
netfs-d22d9eb8304ebfaf0e5f9175ce4ab5d82c82ec30.tar.xz
netfs-d22d9eb8304ebfaf0e5f9175ce4ab5d82c82ec30.zip
Fix behaviour of symlink in daemon
-rw-r--r--netfs/daemonMisc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/netfs/daemonMisc.cpp b/netfs/daemonMisc.cpp
index d5ccbba..37c38c5 100644
--- a/netfs/daemonMisc.cpp
+++ b/netfs/daemonMisc.cpp
@@ -48,7 +48,7 @@ FileSystemServer::symlink(const NetFSComms::ReqEnv & re, const std::string & pat
SessionPtr sess(dgs->getSession(re.tok));
TempPrivs tp(re, &uentries, &gentries);
errno = 0;
- if (::symlink((sess->exportCfg->root / path1).string().c_str(), (sess->exportCfg->root / path2).string().c_str()) != 0) {
+ if (::symlink(path1.c_str(), (sess->exportCfg->root / path2).string().c_str()) != 0) {
throw NetFSComms::SystemError(errno);
}
// s.replicatedRequest = true;