mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +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.uid = owner;
|
||||||
attr.gid = group;
|
attr.gid = group;
|
||||||
attr.flags = SSH_FILEXFER_ATTR_OWNERGROUP;
|
|
||||||
|
attr.flags = SSH_FILEXFER_ATTR_UIDGID;
|
||||||
|
|
||||||
return sftp_setstat(sftp, file, &attr);
|
return sftp_setstat(sftp, file, &attr);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user