View | Details | Raw Unified | Return to bug 2113
Collapse All | Expand All

(-)scp.c (-1 / +1 lines)
Lines 1068-1074 Link Here
1068
			continue;
1068
			continue;
1069
		}
1069
		}
1070
		omode = mode;
1070
		omode = mode;
1071
		mode |= S_IWRITE;
1071
		mode |= S_IWUSR;
1072
		if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1072
		if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
1073
bad:			run_err("%s: %s", np, strerror(errno));
1073
bad:			run_err("%s: %s", np, strerror(errno));
1074
			continue;
1074
			continue;
(-)sftp-client.c (-1 / +1 lines)
Lines 1051-1057 Link Here
1051
	}
1051
	}
1052
1052
1053
	local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC,
1053
	local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC,
1054
	    mode | S_IWRITE);
1054
	    mode | S_IWUSR);
1055
	if (local_fd == -1) {
1055
	if (local_fd == -1) {
1056
		error("Couldn't open local file \"%s\" for writing: %s",
1056
		error("Couldn't open local file \"%s\" for writing: %s",
1057
		    local_path, strerror(errno));
1057
		    local_path, strerror(errno));

Return to bug 2113