Re: sftp can't preserve uploaded mtime: fsetstat: No such file or directory

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



I've just tried that with psftp 0.81.

Unlike pscp, psftp doesn't seem to have the option to preserve timestamps ('-p' or something else). It prints an error message when tried '-p'. The 'chmod' or 'put' commands don't seem to have that either. 

With default options on both OpenSSH server and EFT server uploaded files mtime is the time of upload.

Our EFT Server doesn't have the SCP plugin and the admins don't plan to enable it.


-------- Original Message --------
From: Jim Knoble [mailto:jmknoble@xxxxxxxxx]
Sent: Friday, August 2, 2024 at 14:41 UTC
To: ilya Basin
Cc: Damien Miller; Brian Candler; openssh-unix-dev@xxxxxxxxxxx
Subject: sftp can't preserve uploaded mtime: fsetstat: No such file or directory

On Aug 2, 2024, at 00:32, ilya Basin <basinilya@xxxxxxxxx> wrote:

Looks like EFT doesn't support SSH2_FXP_FSETSTAT (working with a file handle), but it does support SSH2_FXP_SETSTAT (working with a file path). OpenSSH sftp only uses SSH2_FXP_FSETSTAT for directories. It doesn't have a separate "touch" command to set mtime for a path and its "chmod" command doesn't support that either.

Curious whether you've tried PuTTY's PSFTP client and whether it works or not....
 

_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux