summaryrefslogtreecommitdiff
path: root/sftp-client.c
diff options
context:
space:
mode:
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));