Index | Thread | Search

From:
Philip Guenther <guenther@gmail.com>
Subject:
Re: ftp(1): parse fractional seconds in MDTM responses
To:
Benjamin Lee McQueen <mcq@disroot.org>
Cc:
tech@openbsd.org
Date:
Wed, 11 Feb 2026 20:43:25 -0800

Download raw body.

Thread
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