diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2021-09-26 15:23:26 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2021-09-26 15:23:26 -0400 |
commit | 78944c815a5d8d1c93771ca1c343b9406bc262c4 (patch) | |
tree | 0e11144b526a3a1cebeedf4f7277b60d40488580 /util.c | |
parent | 2e918d33be152c1a57ffb3ff53e344cafb161a8c (diff) | |
download | bfs-78944c815a5d8d1c93771ca1c343b9406bc262c4.tar.xz |
Don't truncate files until we know they're not duplicates
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -443,6 +443,7 @@ FILE *xfopen(const char *path, int flags) { break; default: assert(!"Invalid access mode"); + errno = EINVAL; return NULL; } |