summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2009-08-28 10:43:13 +1000
committerDamien Miller <djm@mindrot.org>2009-08-28 10:43:13 +1000
commit0e26551f7fa8371ef067dec63ff46918bf87ad8d (patch)
tree05e439acb66ddc0fa1022b5e6e1f53b9077c016b /sftp-server.c
parent8aac993af6423f0989e4c5fd39acaf9e20a68f0b (diff)
- (djm) [sftp-server.c] bz#1535: accept ENOSYS as a fallback error when
attempting atomic rename(); ok dtucker@
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sftp-server.c b/sftp-server.c
index 83beeadc..d984e604 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1041,7 +1041,7 @@ process_rename(void)
else if (S_ISREG(sb.st_mode)) {
/* Race-free rename of regular files */
if (link(oldpath, newpath) == -1) {
- if (errno == EOPNOTSUPP
+ if (errno == EOPNOTSUPP || errno == ENOSYS
#ifdef EXDEV
|| errno == EXDEV
#endif