summaryrefslogtreecommitdiff
path: root/sftp-client.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2013-06-02 07:52:21 +1000
committerDarren Tucker <dtucker@zip.com.au>2013-06-02 07:52:21 +1000
commit3750fce6ac6b287f62584ac55a4406df95c71b92 (patch)
treee40b1697b606d0ecb0aa4cdcc994825c7fc94627 /sftp-client.c
parentb759c9c2efebe7b416ab81093ca8eb17836b6933 (diff)
- 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)
Diffstat (limited to 'sftp-client.c')
-rw-r--r--sftp-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp-client.c b/sftp-client.c
index 038e1c347..fc60dd80d 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sftp-client.c,v 1.98 2013/05/17 00:13:14 djm Exp $ */ 1/* $OpenBSD: sftp-client.c,v 1.99 2013/06/01 20:59:25 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org> 3 * Copyright (c) 2001-2004 Damien Miller <djm@openbsd.org>
4 * 4 *
@@ -1051,7 +1051,7 @@ do_download(struct sftp_conn *conn, char *remote_path, char *local_path,
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));