mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
upas/fs: don't abort when the server gives us invalid dates
This commit is contained in:
parent
ae2bb7f3ea
commit
fc6d319a3f
1 changed files with 4 additions and 2 deletions
|
@ -352,8 +352,10 @@ redux:
|
|||
for(i = 0; i < n; i += 2){
|
||||
if(strcmp(f[i], "internaldate") == 0){
|
||||
l = internaltounix(f[i + 1]);
|
||||
if(l < 418319360)
|
||||
abort();
|
||||
if(l < 418319360){
|
||||
fprint(2, "invalid date %s\n", f[i+1]);
|
||||
l = time(nil);
|
||||
}
|
||||
if(idx < imap->muid)
|
||||
imap->f[idx].dates = l;
|
||||
}else if(strcmp(f[i], "rfc822.size") == 0){
|
||||
|
|
Loading…
Reference in a new issue