1
0
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:
Tseng Jun
2019-04-27 01:05:32 +08:00
committed by Will Cosgrove
parent 460fe32f7d
commit dd74f2465b

View File

@@ -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) {