- (bal) Patch for fix FCHMOD reference in ftp-client.c by Tim Rice

<tim@multitalents.net>
This commit is contained in:
Ben Lindstrom 2001-02-17 16:47:47 +00:00
Родитель 63015fdb0b
Коммит 6dc75f594d
2 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -1,3 +1,7 @@
20010218
- (bal) Patch for fix FCHMOD reference in ftp-client.c by Tim Rice
<tim@multitalents.net>
20010217 20010217
- (bal) OpenBSD Sync: - (bal) OpenBSD Sync:
- markus@cvs.openbsd.org 2001/02/16 13:38:18 - markus@cvs.openbsd.org 2001/02/16 13:38:18
@ -4004,4 +4008,4 @@
- Wrote replacements for strlcpy and mkdtemp - Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1 - Released 1.0pre1
$Id: ChangeLog,v 1.782 2001/02/16 16:02:14 mouring Exp $ $Id: ChangeLog,v 1.783 2001/02/17 16:47:47 mouring Exp $

Просмотреть файл

@ -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); status = do_close(fd_in, fd_out, handle, handle_len);
/* Override umask and utimes if asked */ /* Override umask and utimes if asked */
#ifdef HAVE_FCHMOD
if (pflag && fchmod(local_fd, mode) == -1) 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, error("Couldn't set mode on \"%s\": %s", local_path,
strerror(errno)); strerror(errno));
if (pflag && (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME)) { if (pflag && (a->flags & SSH2_FILEXFER_ATTR_ACMODTIME)) {