diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | sftp-client.c | 4 |
2 files changed, 9 insertions, 1 deletions
@@ -1,3 +1,7 @@ | |||
1 | 20010218 | ||
2 | - (bal) Patch for fix FCHMOD reference in ftp-client.c by Tim Rice | ||
3 | <tim@multitalents.net> | ||
4 | |||
1 | 20010217 | 5 | 20010217 |
2 | - (bal) OpenBSD Sync: | 6 | - (bal) OpenBSD Sync: |
3 | - markus@cvs.openbsd.org 2001/02/16 13:38:18 | 7 | - markus@cvs.openbsd.org 2001/02/16 13:38:18 |
@@ -4004,4 +4008,4 @@ | |||
4004 | - Wrote replacements for strlcpy and mkdtemp | 4008 | - Wrote replacements for strlcpy and mkdtemp |
4005 | - Released 1.0pre1 | 4009 | - Released 1.0pre1 |
4006 | 4010 | ||
4007 | $Id: ChangeLog,v 1.782 2001/02/16 16:02:14 mouring Exp $ | 4011 | $Id: ChangeLog,v 1.783 2001/02/17 16:47:47 mouring Exp $ |
diff --git a/sftp-client.c b/sftp-client.c index 760a224e2..7c234ce2d 100644 --- a/sftp-client.c +++ b/sftp-client.c | |||
@@ -662,7 +662,11 @@ do_download(int fd_in, int fd_out, char *remote_path, char *local_path, | |||
662 | status = do_close(fd_in, fd_out, handle, handle_len); | 662 | status = do_close(fd_in, fd_out, handle, handle_len); |
663 | 663 | ||
664 | /* Override umask and utimes if asked */ | 664 | /* Override umask and utimes if asked */ |
665 | #ifdef HAVE_FCHMOD | ||
665 | if (pflag && fchmod(local_fd, mode) == -1) | 666 | if (pflag && fchmod(local_fd, mode) == -1) |
667 | #else | ||
668 | if (pflag && chmod(local_path, mode) == -1) | ||
669 | #endif /* HAVE_FCHMOD */ | ||
666 | error("Couldn't set mode on \"%s\": %s", local_path, | 670 | error("Couldn't set mode on \"%s\": %s", local_path, |
667 | strerror(errno)); | 671 | strerror(errno)); |
668 | if (pflag && (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME)) { | 672 | if (pflag && (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME)) { |