On Thu, 2006-04-06 at 15:48 -0400, Miner, Jonathan W (CSC) (US SSA) wrote: > > Jeffrey T. Eaton says: > > > > This patch opens a possible race condition where a legitimate change > > to the file won't result in the modification time being updated. > > Good catch... Thanks!
Not really, it's pretty obvious. > > Sounds like you would need to do a second lstat() call, and them compare the > mtimes. > If the mtimes are equal, then reset the atime, since no changes have occured. > If the mtimes are not equal, > then the file must have modified, so the atime can be left alone. I have a better idea - don't do it at all, because it's completely pointless. -trog
signature.asc
Description: This is a digitally signed message part
_______________________________________________ http://lurker.clamav.net/list/clamav-users.html
