diff options
| author | Andreas Schneider <mail@cynapses.org> | 2010-05-17 23:37:11 +0200 |
|---|---|---|
| committer | Andreas Schneider <mail@cynapses.org> | 2010-05-17 23:38:21 +0200 |
| commit | 31462a4d725cef7e04eafb85119ddc5f8d9aa5b9 (patch) | |
| tree | b320c241c3d4d43ff76e9b13b2590d308fb8bca4 /libssh | |
| parent | fd2ff2d29ccf1feba4a6f08f6fe2abe734994e52 (diff) | |
sftp: Fixed sftp_chown.
Diffstat (limited to 'libssh')
| -rw-r--r-- | libssh/sftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libssh/sftp.c b/libssh/sftp.c index 1509c5ad..3b0c870e 100644 --- a/libssh/sftp.c +++ b/libssh/sftp.c @@ -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); } |
