[18351] in Athena Bugs
Re: athena-krb5 RPM for IS linux-athena
daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Sep 27 00:53:03 2000
Message-Id: <200009270452.AAA05621@egyptian-gods.MIT.EDU>
To: Jonathon Weiss <jweiss@MIT.EDU>
Cc: bugs@MIT.EDU
In-Reply-To: Your message of "Tue, 26 Sep 2000 22:04:20 EDT."
<200009270204.WAA16146@Bearing-An-Hourglass.mit.edu>
Date: Wed, 27 Sep 2000 00:52:55 -0400
From: Greg Hudson <ghudson@MIT.EDU>
>> Also, shouldn't this type of temporary file be created in /tmp?
> Using foo.new is also commonly used for this sort of thing.
Sorry, I actually meant to address this point in my initial response
but forgot. Putting the temporary file in /tmp would have two
problems. First, it's not atomic to "mv /tmp/foo /etc/foo" if /tmp
and /etc are in different filesystems. Second, creating files in /tmp
means you have to worry about a symlink attack (where someone does "ln
-s /some/file /tmp/foo" and you overwrite /some/file).