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

Collapse All | Expand All

(-)a/scp.c (-1 / +4 lines)
Lines 1084-1089 sink(int argc, char **argv) Link Here
1084
			free(vect[0]);
1084
			free(vect[0]);
1085
			continue;
1085
			continue;
1086
		}
1086
		}
1087
		if (buf[0] == 'C' && ! exists && np[strlen(np)-1] == '/') {
1088
			errno = ENOTDIR;
1089
			goto bad;
1090
		}
1087
		omode = mode;
1091
		omode = mode;
1088
		mode |= S_IWUSR;
1092
		mode |= S_IWUSR;
1089
		if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1093
		if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1090
- 

Return to bug 1768