revert patch

This commit is contained in:
van Hauser
2019-10-18 08:25:43 +02:00
parent f2a1456e94
commit 73da639654
2 changed files with 11 additions and 4 deletions

View File

@ -288,10 +288,10 @@ void write_to_testcase(void* mem, u32 len) {
if (out_file) {
// unlink(out_file); /* Ignore errors.
unlink(out_file); /* Ignore errors.
// */
fd = open(out_file, O_WRONLY | O_CREAT | O_TRUNC, 0600);
fd = open(out_file, O_WRONLY | O_CREAT | O_EXCL, 0600);
if (fd < 0) PFATAL("Unable to create '%s'", out_file);
@ -331,10 +331,10 @@ void write_with_gap(void* mem, u32 len, u32 skip_at, u32 skip_len) {
if (out_file) {
// unlink(out_file); /* Ignore errors.
unlink(out_file); /* Ignore errors.
// */
fd = open(out_file, O_WRONLY | O_CREAT | O_TRUNC, 0600);
fd = open(out_file, O_WRONLY | O_CREAT | O_EXCL, 0600);
if (fd < 0) PFATAL("Unable to create '%s'", out_file);