> 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!

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.
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to