View | Details | Raw Unified | Return to bug 1447 | Differences between
and this patch

Collapse All | Expand All

(-)openssh-4.7p1-orig/sftp-server.c (-1 / +1 lines)
Lines 989-995 Link Here
989
	else if (S_ISREG(sb.st_mode)) {
989
	else if (S_ISREG(sb.st_mode)) {
990
		/* Race-free rename of regular files */
990
		/* Race-free rename of regular files */
991
		if (link(oldpath, newpath) == -1) {
991
		if (link(oldpath, newpath) == -1) {
992
			if (errno == EOPNOTSUPP
992
			if (errno == EOPNOTSUPP || errno == EXDEV
993
#ifdef LINK_OPNOTSUPP_ERRNO
993
#ifdef LINK_OPNOTSUPP_ERRNO
994
			    || errno == LINK_OPNOTSUPP_ERRNO
994
			    || errno == LINK_OPNOTSUPP_ERRNO
995
#endif
995
#endif

Return to bug 1447