summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;