]> mj.ucw.cz Git - libucw.git/blobdiff - lib/sorter.h
Fixed the yesterday's mysterious bug.
[libucw.git] / lib / sorter.h
index eebd2206dfdee76c2d1ee10f84d3036f826cf954..4cc8c9951dd405bbb2c520ad290b6f8b8546ae51 100644 (file)
@@ -538,10 +538,7 @@ struct fastbuf *fb1, struct fastbuf *fb2
 #ifdef SORT_OUTPUT_FB
   return fb1;
 #else
-  bconfig(fb1, BCONFIG_IS_TEMP_FILE, 0);
-  if (rename(fb1->name, outname) < 0)
-    die("rename(%s,%s): %m", fb1->name, outname);
-  bclose(fb1);
+  bfix_tmp_file(fb1, outname);
 #endif
 }