Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: ftp(1): parse fractional seconds in MDTM responses
To:
Philip Guenther <guenther@gmail.com>, Benjamin Lee McQueen <mcq@disroot.org>
Cc:
<tech@openbsd.org>
Date:
Thu, 12 Feb 2026 12:32:26 +0000

Download raw body.

Thread
also, ftp(1) changes (at least outside of !small) need testing on ramdisks, 
see release(8) for info on building

-- 
  Sent from a phone, apologies for poor formatting.

On 12 February 2026 04:44:01 Philip Guenther <guenther@gmail.com> wrote:

> On Wed, Feb 11, 2026 at 6:25 PM Benjamin Lee McQueen <mcq@disroot.org> wrote:
>>
>> hello tech@,
>>
>> index: util.c cmds.c ftp.c small.c extern.h
>>
>> this diff implements the TODO to parse optional fractional seconds
>> from FTP MDTM timestamp response.
>
> This doesn't correctly handle more than 9 digits after the decimal point.
>
> Using strtol() should be avoided since supporting a "timestamp" of
> "20260212044126.   -34" is not useful.
>
>
> Philip Guenther