add socks5-v1.0r10.patch2.txt patch
-- This fixes a date related roll-over problem.
This commit is contained in:
parent
997f942624
commit
ba8ef35c1b
18
security/socks5/patches/patch-clients_ftp_cmds.c
Normal file
18
security/socks5/patches/patch-clients_ftp_cmds.c
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-clients_ftp_cmds.c,v 1.1 2000/08/03 00:02:34 brad Exp $
|
||||
|
||||
This fixes a date related roll-over problem.
|
||||
|
||||
--- clients/ftp/cmds.c.orig Wed Aug 2 19:03:51 2000
|
||||
+++ clients/ftp/cmds.c Wed Aug 2 19:05:11 2000
|
||||
@@ -726,9 +726,9 @@
|
||||
&yy, &mo, &day, &hour, &min, &sec);
|
||||
tm = gmtime(&stbuf.st_mtime);
|
||||
tm->tm_mon++;
|
||||
- if (tm->tm_year > yy%100)
|
||||
+ if ((tm->tm_year + 1900) > yy)
|
||||
return (1);
|
||||
- else if (tm->tm_year == yy%100) {
|
||||
+ else if ((tm->tm_year + 1900) == yy) {
|
||||
if (tm->tm_mon > mo)
|
||||
return (1);
|
||||
} else if (tm->tm_mon == mo) {
|
Loading…
x
Reference in New Issue
Block a user