currently sftp does not attempt to preserve uid/gid on fetch. If sftp is running as root, it could preserve uid/gid. Note: a possible objection to implementing this was raised. Namely, whether uid/gid will make sense when sftp is being used in a cross platform case.
Created attachment 167 [details] changes to preserve uid/gid on fetch this is a possible change to preserve uid/gid on fetch
Created attachment 175 [details] changes to preserve uid/gid on fetch changes to sftp-client.c
This is almost useless to most people, as there will be no correspondance between remote [ug]ids and local ones. Future versions of the filexfer draft will add support for sending the user and group names, which we'll support when we support that version of the protocol.
Mass change of RESOLVED bugs to CLOSED