summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--sftp-server.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 461f7c888..be206a44a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,8 @@
4 - (djm) [sshd_config.5] downgrade mention of login.conf to be an example 4 - (djm) [sshd_config.5] downgrade mention of login.conf to be an example
5 and mention PAM as another provider for ChallengeResponseAuthentication; 5 and mention PAM as another provider for ChallengeResponseAuthentication;
6 bz#1408; ok dtucker@ 6 bz#1408; ok dtucker@
7 - (djm) [sftp-server.c] bz#1535: accept ENOSYS as a fallback error when
8 attempting atomic rename(); ok dtucker@
7 9
820090820 1020090820
9 - (dtucker) [includes.h] Bug #1634: do not include system glob.h if we're not 11 - (dtucker) [includes.h] Bug #1634: do not include system glob.h if we're not
diff --git a/sftp-server.c b/sftp-server.c
index 83beeadcf..d984e6049 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -1041,7 +1041,7 @@ process_rename(void)
1041 else if (S_ISREG(sb.st_mode)) { 1041 else if (S_ISREG(sb.st_mode)) {
1042 /* Race-free rename of regular files */ 1042 /* Race-free rename of regular files */
1043 if (link(oldpath, newpath) == -1) { 1043 if (link(oldpath, newpath) == -1) {
1044 if (errno == EOPNOTSUPP 1044 if (errno == EOPNOTSUPP || errno == ENOSYS
1045#ifdef EXDEV 1045#ifdef EXDEV
1046 || errno == EXDEV 1046 || errno == EXDEV
1047#endif 1047#endif