diff --git a/src/sftp.c b/src/sftp.c index b4609bfb..ece590e5 100644 --- a/src/sftp.c +++ b/src/sftp.c @@ -703,7 +703,7 @@ sftp_bin2attr(LIBSSH2_SFTP_ATTRIBUTES *attrs, const unsigned char *p, return LIBSSH2_ERROR_BUFFER_TOO_SMALL; } attrs->uid = uid; - attrs->uid = gid; + attrs->gid = gid; } if(attrs->flags & LIBSSH2_SFTP_ATTR_PERMISSIONS) {