aboutsummaryrefslogtreecommitdiff
path: root/libssh/sftp.c
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2010-05-17 23:37:11 +0200
committerAndreas Schneider <mail@cynapses.org>2010-05-17 23:37:11 +0200
commit4f34062623cd1f2a9b62c6304406b4c7c70c8bda (patch)
tree83f4f8106aebd6f235ec01fd6c7e320029be5260 /libssh/sftp.c
parent255f5bd73f69eaf278e02670dc64ddccb0947b73 (diff)
downloadlibssh-4f34062623cd1f2a9b62c6304406b4c7c70c8bda.tar.gz
libssh-4f34062623cd1f2a9b62c6304406b4c7c70c8bda.tar.xz
libssh-4f34062623cd1f2a9b62c6304406b4c7c70c8bda.zip
sftp: Fixed sftp_chown.
Diffstat (limited to 'libssh/sftp.c')
-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);
}