unlink() an existing file, before opening it, simply truncating can
authorGlenn L McGrath <bug1@ihug.co.nz>
Mon, 21 Apr 2003 10:07:48 +0000 (10:07 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Mon, 21 Apr 2003 10:07:48 +0000 (10:07 -0000)
commit35a5b08eee997593e4e852a6b48fc4b2bb4904e6
tree3bc2901d47c9d99de0d46dde758a4006bf1c39e8
parent6f9a0d4bbb0774822f7e19e59c21f4cbfd7e490e
unlink() an existing file, before opening it, simply truncating can
cause nasty problems if overwriting glibc, spotted by waldi.
archival/tar.c