Skip to content

Commit bdc391b

Browse files
committed
src/bin: fix possible toctou in erase
Found by Coverity Scan Signed-off-by: Joachim Wiberg <[email protected]>
1 parent 9aacd25 commit bdc391b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/bin/erase.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ static int do_erase(const char *path)
2626
}
2727

2828
cfg_adjust(path, NULL, fn, len);
29-
if (access(fn, F_OK)) {
30-
fprintf(stderr, "No such file: %s\n", fn);
31-
return -1;
32-
}
3329
} else
3430
fn = (char *)path;
3531

0 commit comments

Comments
 (0)