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

Collapse All | Expand All

(-)openssh/configure.ac.old (-1 / +1 lines)
Lines 572-578 Link Here
572
	realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
572
	realpath recvmsg rresvport_af sendmsg setdtablesize setegid \
573
	setenv seteuid setlogin setproctitle setresgid setreuid setrlimit \
573
	setenv seteuid setlogin setproctitle setresgid setreuid setrlimit \
574
	setsid setvbuf sigaction sigvec snprintf socketpair strerror \
574
	setsid setvbuf sigaction sigvec snprintf socketpair strerror \
575
	strlcat strlcpy strmode strsep sysconf tcgetpgrp utimes \
575
	strlcat strlcpy strmode strsep sysconf tcgetpgrp truncate utimes \
576
	vhangup vsnprintf waitpid __b64_ntop _getpty)
576
	vhangup vsnprintf waitpid __b64_ntop _getpty)
577
577
578
dnl IRIX and Solaris 2.5.1 have dirname() in libgen
578
dnl IRIX and Solaris 2.5.1 have dirname() in libgen
(-)openssh/openbsd-compat/bsd-misc.c.old (+19 lines)
Lines 99-101 Link Here
99
	return(utime(filename, &ub));
99
	return(utime(filename, &ub));
100
}
100
}
101
#endif 
101
#endif 
102
103
#ifndef HAVE_TRUNCATE
104
int truncate (const char *path, off_t length)
105
{
106
	int fd, ret, saverrno;
107
108
	fd = open(path, O_WRONLY);
109
	if (fd < 0)
110
		return -1;
111
112
	ret = ftruncate(fd, length);
113
	saverrno = errno;
114
	(void) close (fd);
115
	if (ret == -1)
116
		errno = saverrno;
117
	return(ret);
118
}
119
#endif /* HAVE_TRUNCATE */
120
(-)openssh/openbsd-compat/bsd-misc.h.old (+3 lines)
Lines 72-76 Link Here
72
int utimes(char *filename, struct timeval *tvp);
72
int utimes(char *filename, struct timeval *tvp);
73
#endif /* HAVE_UTIMES */
73
#endif /* HAVE_UTIMES */
74
74
75
#ifndef HAVE_TRUNCATE
76
int truncate (const char *path, off_t length);
77
#endif /* HAVE_TRUNCATE */
75
78
76
#endif /* _BSD_MISC_H */
79
#endif /* _BSD_MISC_H */

Return to bug 208