Page MenuHomePhabricator

Parsing of SUBSECOND_TIMES wrong
Closed, ResolvedPublic

Description

The createtime-nseconds field is only present if both CREATETIME and SUBSECOND_TIMES are set:

https://tools.ietf.org/html/draft-ietf-secsh-filexfer-13#page-17

This is the interpretation of other implementations as well, WinSCP fixed it in 2004:
https://winscp.net/forum/viewtopic.php?t=1111

lftp uses this interpretation since 3.5.9, see
https://github.com/ewxrjk/sftpserver/blob/6c0b4852a3654747e88f457a37b20530c5e426ca/v4.c#L63