]> mj.ucw.cz Git - libucw.git/blobdiff - lib/buckettool.c
Introduced bfdopen_shared() which behaves like bfdopen(), but on
[libucw.git] / lib / buckettool.c
index b2f51715828e702e0c5eb013dc67abea1dbb8f0f..ae55b3ca4d4f92c784c25bae194ac3c0fae308fd 100644 (file)
@@ -108,7 +108,7 @@ insert(void)
   struct obuck_header h;
   byte *e;
 
-  in = bfdopen(0, 4096);
+  in = bfdopen_shared(0, 4096);
   obuck_init(1);
   do
     {
@@ -123,7 +123,7 @@ insert(void)
     }
   while (e);
   obuck_cleanup();
-  /* bclose(in) not done, we don't want fd 0 closed */
+  bclose(in);
 }
 
 static void