diff options
author | Tim Rice <tim@multitalents.net> | 2013-07-25 15:40:00 -0700 |
---|---|---|
committer | Tim Rice <tim@multitalents.net> | 2013-07-25 15:40:00 -0700 |
commit | ed899eb597a8901ff7322cba809660515ec0d601 (patch) | |
tree | 9536ed46c7b6662b57569f9fc91405b52f0b023d /sftp-client.c | |
parent | e9e936d33b4b1d77ffbaace9438cb2f1469c1dc7 (diff) |
- (tim) [sftp-client.c] Use of a gcc extension trips up native compilers on
Solaris and UnixWare. Feedback and OK djm@
Diffstat (limited to 'sftp-client.c')
-rw-r--r-- | sftp-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sftp-client.c b/sftp-client.c index cb4efd3ea..f4f1970b6 100644 --- a/sftp-client.c +++ b/sftp-client.c | |||
@@ -1051,7 +1051,7 @@ do_download(struct sftp_conn *conn, char *remote_path, char *local_path, | |||
1051 | return(-1); | 1051 | return(-1); |
1052 | } | 1052 | } |
1053 | 1053 | ||
1054 | local_fd = open(local_path, O_WRONLY | O_CREAT | (resume ? : O_TRUNC), | 1054 | local_fd = open(local_path, O_WRONLY | O_CREAT | (resume ? 0 : O_TRUNC), |
1055 | mode | S_IWUSR); | 1055 | mode | S_IWUSR); |
1056 | if (local_fd == -1) { | 1056 | if (local_fd == -1) { |
1057 | error("Couldn't open local file \"%s\" for writing: %s", | 1057 | error("Couldn't open local file \"%s\" for writing: %s", |