]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-file.c
Defined a GET_TAGGED_CHAR macro to read our internal representation
[libucw.git] / lib / fb-file.c
index fc8a19837f21da254fb0738ed564c6418169c9fb..ac25dcf3e954b1c663dcc5b288ba33625302abd4 100644 (file)
@@ -64,6 +64,8 @@ static void
 bfd_close(struct fastbuf *f)
 {
   close(f->fd);
+  if (f->is_temp_file && unlink(f->name) < 0)
+    die("unlink(%s): %m", f->name);
 }
 
 static struct fastbuf *