Displaying 10 results from an estimated 10 matches for "fsetstat".
Did you mean:
setstat
2024 Aug 01
1
sftp can't preserve uploaded mtime: fsetstat: No such file or directory
...does the command line client use?
>
>
> -------- Original Message --------
> From: Brian Candler [mailto:b.candler at pobox.com]
> Sent: Wednesday, July 31, 2024 at 15:42 UTC
> To: ilya Basin; openssh-unix-dev at mindrot.org
> Subject: sftp can't preserve uploaded mtime: fsetstat: No such file or directory
>
> On 31/07/2024 16:28, ilya Basin wrote:
> I use openssh-client 1:8.9p1-3ubuntu0.6 and I'm trying to upload files to EFT Server.
>
> Previously I was using Total Commander with SFTP plugin and it does preserve mtime. https://www.ghisler.com/plugins....
2024 Jul 31
1
sftp can't preserve uploaded mtime: fsetstat: No such file or directory
...,
thename,&attr)
What does the command line client use?
-------- Original Message --------
From: Brian Candler [mailto:b.candler at pobox.com]
Sent: Wednesday, July 31, 2024 at 15:42 UTC
To: ilya Basin; openssh-unix-dev at mindrot.org
Subject: sftp can't preserve uploaded mtime: fsetstat: No such file or directory
On 31/07/2024 16:28, ilya Basin wrote:
I use openssh-client 1:8.9p1-3ubuntu0.6 and I'm trying to upload files to EFT Server.
Previously I was using Total Commander with SFTP plugin and it does preserve mtime. https://www.ghisler.com/plugins.htm
When I try to do the...
2024 Jul 31
1
sftp can't preserve uploaded mtime: fsetstat: No such file or directory
...mated/2024_batch_Q3/"
> Uploading MRW_PM_Series_17146_PSSF_T1_HB.zip to /0_GLS to be automated/2024_batch_Q3/MRW_PM_Series_17146_PSSF_T1_HB.zip
> MRW_PM_Series_17146_PSSF_T1_HB.zip 100% 977KB 1.0MB/s 00:00
> remote fsetstat: No such file or directory
Just a thought: does it work if the target directory name doesn't
include spaces?
2024 Aug 02
1
sftp can't preserve uploaded mtime: fsetstat: No such file or directory
I'm connecting to "EFT Server" https://www.globalscape.com/eft and it has an SFTP module. It has nothing to do with OpenSSH, but enterprise likes it for some reason. I don't control the server.
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...
2024 Jul 31
1
sftp can't preserve uploaded mtime: fsetstat: No such file or directory
...;/0_GLS to be automated/2024_batch_Q3/"
Uploading MRW_PM_Series_17146_PSSF_T1_HB.zip to /0_GLS to be automated/2024_batch_Q3/MRW_PM_Series_17146_PSSF_T1_HB.zip
MRW_PM_Series_17146_PSSF_T1_HB.zip 100% 977KB 1.0MB/s 00:00
remote fsetstat: No such file or directory
2024 Aug 02
1
sftp can't preserve uploaded mtime: fsetstat: No such file or directory
> On Aug 2, 2024, at 00:32, ilya Basin <basinilya at gmail.com> 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...
2017 Sep 06
2
Disallow some sftp commands
Hello,
Couple of days ago, I received a request from a customer.
He wants to provide sftp users access to a directory tree containing files.
The users must have full rights, but he also wants to avoid moving or
deleting directories. This is mostly to prevent mistakenly drag and
drop from user's graphical client (Filezilla).
Said differently, he wants to protect the directories organization.
2016 Apr 18
0
[Bug 1953] Implementation of xattr in sftp-server for sshfs
...ider, protocol-wise, is the use of the
SSH_FILEXFER_ATTR_EXTENDED flag of the ATTRS structure, which is part
of SFTP protocol version 3 (and earlier); see:
https://tools.ietf.org/html/draft-ietf-secsh-filexfer-02#section-5
SFTP clients can send xattrs as ATTR_EXTENDED key/value pairs in
SETSTAT/FSETSTAT requests; OpenSSH should send the xattrs in READDIR
and STAT et al requests the same way.
This would still require patching OpenSSH's SFTP server to use the
platform-specific extended attribute APIs (extattr(9) for BSDs,
xattr(8) for Linux, with Mac providing something similar to Linux but
wit...
2006 May 15
1
[PATCH 8/12] openssh-4.3p2 return code check bugs
...ndle < 0)
+ goto out;
TRACE("fstat id %u handle %d", id, handle);
fd = handle_to_fd(handle);
if (fd >= 0) {
@@ -551,6 +563,7 @@ process_fstat(void)
status = SSH2_FX_OK;
}
}
+out:
if (status != SSH2_FX_OK)
send_status(id, status);
}
@@ -614,6 +627,10 @@ process_fsetstat(void)
id = get_int();
handle = get_handle();
+ if (handle < 0) {
+ status = SSH2_FX_FAILURE;
+ goto out;
+ }
a = get_attrib();
TRACE("fsetstat id %u handle %d", id, handle);
fd = handle_to_fd(handle);
@@ -654,6 +671,7 @@ process_fsetstat(void)
status = errno_to_porta...
2001 Jun 20
1
SFTP Logging Redux.
...id %d name %s", id, name);
+ log("(%d/%d/%s) Permissions altered: %s (%04o).", ppid, cuid, CUNAME, name, a->perm & 0777);
if (a->flags & SSH2_FILEXFER_ATTR_PERMISSIONS) {
ret = chmod(name, a->perm & 0777);
if (ret == -1)
@@ -623,6 +655,7 @@
TRACE("fsetstat id %d handle %d", id, handle);
fd = handle_to_fd(handle);
name = handle_to_name(handle);
+ log("(%d/%d/%s) Permissions altered: %s (%04o).", ppid, cuid, CUNAME, name, a->perm & 0777);
if (fd < 0 || name == NULL) {
status = SSH2_FX_FAILURE;
} else {
@@ -790,6 +823...