]> andersk Git - openssh.git/commitdiff
- (bal) Patch for fix FCHMOD reference in ftp-client.c by Tim Rice
authormouring <mouring>
Sat, 17 Feb 2001 16:47:47 +0000 (16:47 +0000)
committermouring <mouring>
Sat, 17 Feb 2001 16:47:47 +0000 (16:47 +0000)
   <tim@multitalents.net>

ChangeLog
sftp-client.c

index 6429117da099d997fcd1eb6563570f333e28e8ea..c79519755824f2c18ad9b8a536a67963c80fe145 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+20010218
+ - (bal) Patch for fix FCHMOD reference in ftp-client.c by Tim Rice 
+   <tim@multitalents.net> 
+
 20010217
  - (bal) OpenBSD Sync:
    - markus@cvs.openbsd.org 2001/02/16 13:38:18
index 760a224e26dce08488499a05b7c8744f0c5c7874..7c234ce2d6cd7f8b2b0a8ab3c172b809d6554cf2 100644 (file)
@@ -662,7 +662,11 @@ do_download(int fd_in, int fd_out, char *remote_path, char *local_path,
        status = do_close(fd_in, fd_out, handle, handle_len);
 
        /* Override umask and utimes if asked */
+#ifdef HAVE_FCHMOD
        if (pflag && fchmod(local_fd, mode) == -1)
+#else 
+       if (pflag && chmod(local_path, mode) == -1)
+#endif /* HAVE_FCHMOD */
                error("Couldn't set mode on \"%s\": %s", local_path,
                    strerror(errno));
        if (pflag && (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME)) {
This page took 0.075252 seconds and 5 git commands to generate.