]> mj.ucw.cz Git - libucw.git/blobdiff - lib/fb-mmap.c
Implemented bfix_tmp_file(), which turns a temporary file fastbuf
[libucw.git] / lib / fb-mmap.c
index 3b4765b9617998a26239df18c198ef3322202386..56c2ef666504d2abfac52832e62d16d697885dd8 100644 (file)
@@ -157,11 +157,14 @@ bfmm_close(struct fastbuf *f)
 static int
 bfmm_config(struct fastbuf *f, uns item, int value)
 {
+  int orig;
+
   switch (item)
     {
     case BCONFIG_IS_TEMP_FILE:
+      orig = FB_MMAP(f)->is_temp_file;
       FB_MMAP(f)->is_temp_file = value;
-      return 0;
+      return orig;
     default:
       return -1;
     }