[15957] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: saferm

daemon@ATHENA.MIT.EDU (Craig Fields)
Thu May 28 15:40:11 1998

Date: Thu, 28 May 1998 15:40:08 -0400
From: Craig Fields <cfields@MIT.EDU>
To: tb@MIT.EDU
Cc: kcr@MIT.EDU, bugs@MIT.EDU

> (I found two other problems in the code as well; it should do an fsync
> after the zeroing, and it should do the zeroing after the unlink.)

Why is close is not sufficient?

I'm not sure of the utility of zeroing after the unlink. I imagine
that the idea is to make sure that the user doesn't write data into
the file at the last second that fails to be zeroed, but doing this is
no guarantee that that will be avoided.

Craig

home help back first fref pref prev next nref lref last post