mirror of git://anongit.mindrot.org/openssh.git
- dtucker@cvs.openbsd.org 2013/06/01 20:59:25
[scp.c sftp-client.c] Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is. Patch from Nathan Osman via bz#2113. ok deraadt. (note: corrected bug number from 2085)
This commit is contained in:
parent
b759c9c2ef
commit
3750fce6ac
|
@ -44,6 +44,10 @@
|
||||||
Use clock_gettime(CLOCK_MONOTONIC ...) for ssh timers so that things like
|
Use clock_gettime(CLOCK_MONOTONIC ...) for ssh timers so that things like
|
||||||
keepalives and rekeying will work properly over clock steps. Suggested by
|
keepalives and rekeying will work properly over clock steps. Suggested by
|
||||||
markus@, "looks good" djm@.
|
markus@, "looks good" djm@.
|
||||||
|
- dtucker@cvs.openbsd.org 2013/06/01 20:59:25
|
||||||
|
[scp.c sftp-client.c]
|
||||||
|
Replace S_IWRITE, which isn't standardized, with S_IWUSR, which is. Patch
|
||||||
|
from Nathan Osman via bz#2085. ok deraadt.
|
||||||
|
|
||||||
20130529
|
20130529
|
||||||
- (dtucker) [configure.ac openbsd-compat/bsd-misc.h] bz#2087: Add a null
|
- (dtucker) [configure.ac openbsd-compat/bsd-misc.h] bz#2087: Add a null
|
||||||
|
|
4
scp.c
4
scp.c
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: scp.c,v 1.173 2013/05/17 00:13:14 djm Exp $ */
|
/* $OpenBSD: scp.c,v 1.174 2013/06/01 20:59:25 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* scp - secure remote copy. This is basically patched BSD rcp which
|
* scp - secure remote copy. This is basically patched BSD rcp which
|
||||||
* uses ssh to do the data transfer (instead of using rcmd).
|
* uses ssh to do the data transfer (instead of using rcmd).
|
||||||
|
@ -1066,7 +1066,7 @@ sink(int argc, char **argv)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
omode = mode;
|
omode = mode;
|
||||||
mode |= S_IWRITE;
|
mode |= S_IWUSR;
|
||||||
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
|
if ((ofd = open(np, O_WRONLY|O_CREAT, mode)) < 0) {
|
||||||
bad: run_err("%s: %s", np, strerror(errno));
|
bad: run_err("%s: %s", np, strerror(errno));
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $OpenBSD: sftp-client.c,v 1.98 2013/05/17 00:13:14 djm Exp $ */
|
/* $OpenBSD: sftp-client.c,v 1.99 2013/06/01 20:59:25 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
* Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
|
||||||
*
|
*
|
||||||
|
@ -1051,7 +1051,7 @@ do_download(struct sftp_conn *conn, char *remote_path, char *local_path,
|
||||||
}
|
}
|
||||||
|
|
||||||
local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC,
|
local_fd = open(local_path, O_WRONLY | O_CREAT | O_TRUNC,
|
||||||
mode | S_IWRITE);
|
mode | S_IWUSR);
|
||||||
if (local_fd == -1) {
|
if (local_fd == -1) {
|
||||||
error("Couldn't open local file \"%s\" for writing: %s",
|
error("Couldn't open local file \"%s\" for writing: %s",
|
||||||
local_path, strerror(errno));
|
local_path, strerror(errno));
|
||||||
|
|
Loading…
Reference in New Issue