Logged In: NO

I see that attach failed for some reason, here you go

--- /home/awe/ftpsys_unix.cpp Sat Jan 25 23:36:02 2003
+++ filesystems/ftpfs/ftpsys_unix.cpp Thu Feb 20
18:06:13 2003
@@ -77,8 +77,8 @@
ftpsys_unix::parse_line(char *buf, char *file, struct lufs_fattr
*fattr, char *link, struct credentials *cred){
unsigned long nlink, size;
int res;
- struct tm tm;
- time_t tt;
+ struct tm tm, tmptm;
+ time_t tt, tmptt;
char user[32], group[32], month[5], day[5], year[6], date
[20];
char *c, *cc;

@@ -89,14 +89,28 @@
return -1;
}

- sprintf(date,"%s,%s,%s", year, month, day);
tt = time(NULL);
- gmtime_r(&tt, &tm);
- tm.tm_sec = tm.tm_min = tm.tm_hour = 0;
- if(strchr(year, ':'))
- strptime(date, "%H:%M,%b,%d", &tm);
+ gmtime_r (&tt, &tm);
+
+ if (strchr(year,':'))
+ {
+ tmptt = time(NULL);
+ gmtime_r (&tmptt, &tmptm);
+
+ sprintf (date, "%s,%s,%s", year, month, day);
+ strptime (date, "%H:%M,%b,%d", &tm);
+
+ if (mktime (&tm) - mktime (&tmptm) > (31556952 /
2))
+ {
+ tm.tm_year--;
+ }
+ }
else
- strptime(date, "%Y,%b,%d", &tm);
+ {
+ tm.tm_sec = tm.tm_min = tm.tm_hour = 0;
+ sprintf (date, "%s,%s,%s", year, month, day);
+ strptime (date, "%Y,%b,%d", &tm);
+ }

memset(fattr, 0, sizeof(struct lufs_fattr));