- (djm) [sftp-server.c] bz#1535: accept ENOSYS as a fallback error when

attempting atomic rename(); ok dtucker@
This commit is contained in:
Damien Miller 2009-08-28 10:43:13 +10:00
parent 8aac993af6
commit 0e26551f7f
2 changed files with 3 additions and 1 deletions

View File

@ -4,6 +4,8 @@
- (djm) [sshd_config.5] downgrade mention of login.conf to be an example - (djm) [sshd_config.5] downgrade mention of login.conf to be an example
and mention PAM as another provider for ChallengeResponseAuthentication; and mention PAM as another provider for ChallengeResponseAuthentication;
bz#1408; ok dtucker@ bz#1408; ok dtucker@
- (djm) [sftp-server.c] bz#1535: accept ENOSYS as a fallback error when
attempting atomic rename(); ok dtucker@
20090820 20090820
- (dtucker) [includes.h] Bug #1634: do not include system glob.h if we're not - (dtucker) [includes.h] Bug #1634: do not include system glob.h if we're not

View File

@ -1041,7 +1041,7 @@ process_rename(void)
else if (S_ISREG(sb.st_mode)) { else if (S_ISREG(sb.st_mode)) {
/* Race-free rename of regular files */ /* Race-free rename of regular files */
if (link(oldpath, newpath) == -1) { if (link(oldpath, newpath) == -1) {
if (errno == EOPNOTSUPP if (errno == EOPNOTSUPP || errno == ENOSYS
#ifdef EXDEV #ifdef EXDEV
|| errno == EXDEV || errno == EXDEV
#endif #endif