Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wezterm_ssh: sftp.set_metadata fails with "generic failure" #3784

Open
chipsenkbeil opened this issue May 27, 2023 · 0 comments
Open

wezterm_ssh: sftp.set_metadata fails with "generic failure" #3784

chipsenkbeil opened this issue May 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@chipsenkbeil
Copy link
Contributor

What Operating System(s) are you seeing this problem on?

Linux X11, macOS

Which Wayland compositor or X11 Window manager(s) are you using?

N/A

WezTerm version

wezterm-ssh 0.4.0

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

Attempting to set the metadata fails with "Generic failure" error message.

use wezterm_ssh::{FilePermissions, Sftp, Utf8PathBuf};

let sftp: Sftp = /* get sftp channel */;
let path: Utf8PathBuf = /* define some path */;

// Get some metadata from a file
let mut metadata = sftp.metadata(&path).await.unwrap();

// Assign new file permissions to it
metadata.permissions = Some(FilePermissions::from_unix_mode(0o777));

// Set the metadata including permissions to the file
//
// !!! Fails with a "Generic failure" error message !!!
sftp.set_metadata(path, metadata).await.unwrap();

To Reproduce

No response

Configuration

N/A

Expected Behavior

Able to set the metadata of the file, which includes the permissions.

Logs

No response

Anything else?

No response

@chipsenkbeil chipsenkbeil added the bug Something isn't working label May 27, 2023
chipsenkbeil added a commit to chipsenkbeil/distant that referenced this issue May 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant