mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
sftp: Fixed sftp_chown.
This commit is contained in:
@@ -2484,7 +2484,8 @@ int sftp_chown(sftp_session sftp, const char *file, uid_t owner, gid_t group) {
|
||||
|
||||
attr.uid = owner;
|
||||
attr.gid = group;
|
||||
attr.flags = SSH_FILEXFER_ATTR_OWNERGROUP;
|
||||
|
||||
attr.flags = SSH_FILEXFER_ATTR_UIDGID;
|
||||
|
||||
return sftp_setstat(sftp, file, &attr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user