mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +03:00
sftp.c : sftp_bin2attr() Correct attrs->gid assignment (#366)
Regression with fix for #339 Credit : Tseng Jun
This commit is contained in:
@@ -703,7 +703,7 @@ sftp_bin2attr(LIBSSH2_SFTP_ATTRIBUTES *attrs, const unsigned char *p,
|
|||||||
return LIBSSH2_ERROR_BUFFER_TOO_SMALL;
|
return LIBSSH2_ERROR_BUFFER_TOO_SMALL;
|
||||||
}
|
}
|
||||||
attrs->uid = uid;
|
attrs->uid = uid;
|
||||||
attrs->uid = gid;
|
attrs->gid = gid;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(attrs->flags & LIBSSH2_SFTP_ATTR_PERMISSIONS) {
|
if(attrs->flags & LIBSSH2_SFTP_ATTR_PERMISSIONS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user