*** cfs_fh.c~ 2008-04-27 00:47:55.000000000 -0400 --- cfs_fh.c 2008-05-05 00:51:35.000000000 -0400 *************** *** 614,619 **** --- 614,620 ---- if ((openfd==f) && (curmode==mode)) /* yay */ return curfd; close(curfd); /* hope it was valid... */ + curfd = -1; /* RES: Latent Bug */ openfd=NULL; } *************** *** 736,741 **** --- 737,745 ---- tv[1].tv_sec=a->mtime.seconds; tv[1].tv_usec=a->mtime.useconds; } + /* Added RES: Ubuntu Gutsy checks bounds on tv_usec */ + if(tv[0].tv_usec > 999999) tv[0].tv_usec = 999999; + if(tv[1].tv_usec > 999999) tv[1].tv_usec = 999999; if (utimes(f->name,tv)<0) return -1; }