diff options
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 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 |