View | Details | Raw Unified | Return to bug 1535
Collapse All | Expand All

(-)openssh-5.1p1/sftp-server.c (-1 / +1 lines)
Lines 1041-1047 Link Here
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

Return to bug 1535