diff options
author | djm <djm> | 2009-08-28 00:43:13 +0000 |
---|---|---|
committer | djm <djm> | 2009-08-28 00:43:13 +0000 |
commit | ce424e04044a522e51b03ac662c7419049c31171 (patch) | |
tree | 823ccc22cf35e3d98ed133d4b1a874504a12aa37 /sftp-server.c | |
parent | aa2bcd8660ef386341586aa51ff174e70076258d (diff) | |
download | openssh-ce424e04044a522e51b03ac662c7419049c31171.tar.gz |
- (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.c | 2 |
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 |