Re: crontab changes for PR bin/22612; please comment
Jens Schweikhardt <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.audit |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Mar 18, 2002 at 04:08:04PM -0500, Garance A Drosihn wrote: # At 1:09 PM +0100 3/18/02, Jens Schweikhardt wrote: # >hello, world\n # > # >please comment on this patch (slightly different from the # >one in the PR # >http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/22612) # > # >Currently, checking for modification of the tmp file just # >looks at the mtime and gives a false "no modification" if # >the edit took less than 1 second. This is solved by simply # >comparing the whole struct stat. ... # Stupid brain-dead alternative fix: # Create the file. stat the file. sleep a second. # *Then* open the file in the user's editor. Any # change that they make will have to have been done # more than a second later. Hmm. What about completely removing the test whether the tmp file was modified? Just try to install the crontab, no matter what. Or is there a reason why crontab files must not be installed if they havn't changed? Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) To Unsubscribe: send mail to [email protected] with "unsubscribe freebsd-audit" in the body of the message