Re: [patch] x86-64 ext2/ext3 datestamp problem

2007-02-06 Thread Markus Rechberger
H. Peter Anvin wrote: > Markus Rechberger wrote: >> H. Peter Anvin wrote: >>> Markus Rechberger wrote: My debian system's coreutils package only allows dates between 1902 and 2038, but it might be interesting to get that right if it's wrong. touch (GNU coreutils) 5.97 just

Re: [patch] x86-64 ext2/ext3 datestamp problem

2007-02-06 Thread H. Peter Anvin
Markus Rechberger wrote: H. Peter Anvin wrote: Markus Rechberger wrote: My debian system's coreutils package only allows dates between 1902 and 2038, but it might be interesting to get that right if it's wrong. touch (GNU coreutils) 5.97 just says invalid dateformat to 2050-01-01 Lemme guess,

Re: [patch] x86-64 ext2/ext3 datestamp problem

2007-02-06 Thread Markus Rechberger
H. Peter Anvin wrote: > Markus Rechberger wrote: >> My debian system's coreutils package only allows dates between 1902 and >> 2038, but it might be interesting to get that right if it's wrong. >> >> touch (GNU coreutils) 5.97 just says invalid dateformat to 2050-01-01 > > Lemme guess, you're on a

Re: [patch] x86-64 ext2/ext3 datestamp problem

2007-02-06 Thread H. Peter Anvin
Markus Rechberger wrote: My debian system's coreutils package only allows dates between 1902 and 2038, but it might be interesting to get that right if it's wrong. touch (GNU coreutils) 5.97 just says invalid dateformat to 2050-01-01 Lemme guess, you're on a 32-bit system... -hpa - T

Re: [patch] x86-64 ext2/ext3 datestamp problem

2007-02-06 Thread Markus Rechberger
H. Peter Anvin wrote: > Markus Rechberger wrote: >> Hi, >> >> there is an issue with ext2/ext3 date stamps, if someone creates a file >> with a timestamp between 1902 and 1970(epoch 0) it will overflow and >> result in a higher date than 2038. >> >> $ touch --date "1905-01-01" test >> $ ls -lah tes

Re: [patch] x86-64 ext2/ext3 datestamp problem

2007-02-06 Thread H. Peter Anvin
Markus Rechberger wrote: Hi, there is an issue with ext2/ext3 date stamps, if someone creates a file with a timestamp between 1902 and 1970(epoch 0) it will overflow and result in a higher date than 2038. $ touch --date "1905-01-01" test $ ls -lah test -rw-r--r-- 1 root root 0 Jan 1 1905 test

Re: [patch] x86-64 ext2/ext3 datestamp problem

2007-02-06 Thread Markus Rechberger
Signed-off-by: Markus Rechberger <[EMAIL PROTECTED]> Markus Rechberger wrote: > Hi, > > there is an issue with ext2/ext3 date stamps, if someone creates a file > with a timestamp between 1902 and 1970(epoch 0) it will overflow and > result in a higher date than 2038. > > $ touch --date "1905-01-01