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

Collapse All | Expand All

(-)configure.ac (+6 lines)
Lines 958-963 int main(void){struct dirent d;exit(size Link Here
958
	]
958
	]
959
)
959
)
960
960
961
AC_CHECK_MEMBERS(struct dirent.d_ino, [], [], [AC_LANG_SOURCE([[
962
#include <sys/types.h>
963
#include <dirent.h>
964
	]])]
965
)
966
961
AC_MSG_CHECKING([for /proc/pid/fd directory])
967
AC_MSG_CHECKING([for /proc/pid/fd directory])
962
if test -d "/proc/$$/fd" ; then
968
if test -d "/proc/$$/fd" ; then
963
	AC_DEFINE(HAVE_PROC_PID, 1, [Define if you have /proc/$pid/fd])
969
	AC_DEFINE(HAVE_PROC_PID, 1, [Define if you have /proc/$pid/fd])
(-)scp.c (+2 lines)
Lines 695-702 rsource(char *name, struct stat *statp) Link Here
695
		return;
695
		return;
696
	}
696
	}
697
	while ((dp = readdir(dirp)) != NULL) {
697
	while ((dp = readdir(dirp)) != NULL) {
698
#ifdef HAVE_STRUCT_DIRENT_D_INO
698
		if (dp->d_ino == 0)
699
		if (dp->d_ino == 0)
699
			continue;
700
			continue;
701
#endif
700
		if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
702
		if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
701
			continue;
703
			continue;
702
		if (strlen(name) + 1 + strlen(dp->d_name) >= sizeof(path) - 1) {
704
		if (strlen(name) + 1 + strlen(dp->d_name) >= sizeof(path) - 1) {

Return to bug 1161