X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffb-file.c;h=66227ed1b3ef3935ae09c97710b2403b26d66ef7;hb=d5e8872563f6fde8299db971ffb6494c2438c590;hp=bf5684aff0aeaf284f3166c6c539b7f427de4e07;hpb=53e3a446f4ec3ecdde06c5efc47c633c8c33418a;p=libucw.git diff --git a/lib/fb-file.c b/lib/fb-file.c index bf5684af..66227ed1 100644 --- a/lib/fb-file.c +++ b/lib/fb-file.c @@ -196,7 +196,8 @@ bfd_close(struct fastbuf *f) if (unlink(f->name) < 0) log(L_ERROR, "unlink(%s): %m", f->name); case 0: - close(FB_FILE(f)->fd); + if (close(FB_FILE(f)->fd)) + die("close(%s): %m", f->name); } xfree(f); }