]> granicus.if.org Git - transmission/commit
(trunk libT) #3614 "Can't save benc files under uClibc 0.9.31" -- on some systems...
authorCharles Kerr <charles@transmissionbt.com>
Mon, 11 Oct 2010 21:27:31 +0000 (21:27 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Mon, 11 Oct 2010 21:27:31 +0000 (21:27 +0000)
commit0cf643f8c31965238c2382697600a5cc8a01ff1d
tree5f07c98447e9ef34df4dbdd65c1c5caa00a9d78d
parent8d15c48a3fccd1086dbb50dace5fc3b64bbaba11
(trunk libT) #3614 "Can't save benc files under uClibc 0.9.31" -- on some systems, calling unlink() on a file that doesn't exist returns 0 instead of -1 + ENOENT... so don't rely on that test.  Instead, call stat() before unlink()ing the file.
libtransmission/bencode.c