aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
Diffstat (limited to 'libssh')
-rw-r--r--libssh/sftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c
index 250c093f..d5377f41 100644
--- a/libssh/sftp.c
+++ b/libssh/sftp.c
@@ -2483,7 +2483,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);
}