X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Ffb-temp.c;h=a68eb5824d86cfd11c4a3151c0962896de793314;hb=9f4d2aa894b1ccb7c82e1bd277f51ab1bce9f288;hp=05fb655b3f65934afa6a1d40c59ad75e6992d20b;hpb=8d23a082a5772b6e94d67e7cff0c4d9bf73d8a5f;p=libucw.git diff --git a/ucw/fb-temp.c b/ucw/fb-temp.c index 05fb655b..a68eb582 100644 --- a/ucw/fb-temp.c +++ b/ucw/fb-temp.c @@ -35,7 +35,7 @@ void bfix_tmp_file(struct fastbuf *fb, const char *name) int was_temp = bconfig(fb, BCONFIG_IS_TEMP_FILE, 0); ASSERT(was_temp == 1); if (rename(fb->name, name)) - die("Cannot rename %s to %s: %m", fb->name, name); + bthrow(fb, "fb.tmp", "Cannot rename %s to %s: %m", fb->name, name); bclose(fb); }