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

Collapse All | Expand All

(-)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
#if 0
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