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

Collapse All | Expand All

(-)acconfig.h (+6 lines)
Lines 434-439 Link Here
434
/* Define if cmsg_type is not passed correctly */
434
/* Define if cmsg_type is not passed correctly */
435
#undef BROKEN_CMSG_TYPE
435
#undef BROKEN_CMSG_TYPE
436
436
437
/*
438
 * Define to whatever link() returns for "not supported" if it doesn't
439
 * return EOPNOTSUPP.
440
 */
441
#undef LINK_OPNOTSUPP_ERRNO
442
437
/* Strings used in /etc/passwd to denote locked account */
443
/* Strings used in /etc/passwd to denote locked account */
438
#undef LOCKED_PASSWD_STRING
444
#undef LOCKED_PASSWD_STRING
439
#undef LOCKED_PASSWD_PREFIX
445
#undef LOCKED_PASSWD_PREFIX
(-)configure.ac (+1 lines)
Lines 254-259 main() { if (NSVersionOfRunTimeLibrary(" Link Here
254
	AC_DEFINE(PAM_TTY_KLUDGE)
254
	AC_DEFINE(PAM_TTY_KLUDGE)
255
	AC_DEFINE(LOCKED_PASSWD_PREFIX, "!")
255
	AC_DEFINE(LOCKED_PASSWD_PREFIX, "!")
256
	AC_DEFINE(SPT_TYPE,SPT_REUSEARGV)
256
	AC_DEFINE(SPT_TYPE,SPT_REUSEARGV)
257
	AC_DEFINE(LINK_OPNOTSUPP_ERRNO, EPERM)
257
	inet6_default_4in6=yes
258
	inet6_default_4in6=yes
258
	case `uname -r` in
259
	case `uname -r` in
259
	1.*|2.0.*)
260
	1.*|2.0.*)
(-)sftp-server.c (-1 / +5 lines)
Lines 840-846 process_rename(void) Link Here
840
	else if (S_ISREG(sb.st_mode)) {
840
	else if (S_ISREG(sb.st_mode)) {
841
		/* Race-free rename of regular files */
841
		/* Race-free rename of regular files */
842
		if (link(oldpath, newpath) == -1) {
842
		if (link(oldpath, newpath) == -1) {
843
			if (errno == EOPNOTSUPP) {
843
			if (errno == EOPNOTSUPP
844
#ifdef LINK_OPNOTSUPP_ERRNO
845
			    || errno == LINK_OPNOTSUPP_ERRNO
846
#endif
847
			    ) {
844
				struct stat st;
848
				struct stat st;
845
849
846
				/*
850
				/*

Return to bug 823