aboutsummaryrefslogtreecommitdiff
path: root/networking/ftpd.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-07-11 00:16:08 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2012-07-11 00:16:08 +0200
commit3bb858765e0524efdf2a05c8669ddbfde522d634 (patch)
treefa3239e5c192a43ea397e79415a092ea34152310 /networking/ftpd.c
parent566a313a7f531d7df28f8ae01d19a4b28134b2e3 (diff)
downloadbusybox-3bb858765e0524efdf2a05c8669ddbfde522d634.tar.gz
ftpd: fix MDTM's month value. Closes 5336
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r--networking/ftpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index 1c97df564..4ba96cfc2 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -821,7 +821,7 @@ handle_size_or_mdtm(int need_size)
gmtime_r(&statbuf.st_mtime, &broken_out);
sprintf(buf, STR(FTP_STATFILE_OK)" %04u%02u%02u%02u%02u%02u\r\n",
broken_out.tm_year + 1900,
- broken_out.tm_mon,
+ broken_out.tm_mon + 1,
broken_out.tm_mday,
broken_out.tm_hour,
broken_out.tm_min,