Bug 5336

Summary: ftpd: MDTM command returns incorrect month
Product: Busybox Reporter: Matthew Stapleton <matthew4196>
Component: NetworkingAssignee: unassigned
Status: RESOLVED FIXED    
Severity: trivial CC: busybox-cvs, matthew4196
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:

Description Matthew Stapleton 2012-06-27 23:17:19 UTC
According to rfc3659 and http://www.nsftools.com/tips/RawFTP.htm#MDTM the month field for the MDTM command should be from 1 to 12, but ftpd uses the unconverted value from gmtime_r which returns 0 to 11 for the month.
Comment 1 Denys Vlasenko 2012-07-10 22:17:09 UTC
Thanks!

Fixed in git:

commit 3bb858765e0524efdf2a05c8669ddbfde522d634
Author: Denys Vlasenko <vda.linux@googlemail.com>
Date:   Wed Jul 11 00:16:08 2012 +0200

    ftpd: fix MDTM's month value