libbb: [x]fopen_for_{read,write} introduced and used.
[platform/upstream/busybox.git] / e2fsprogs / old_e2fsprogs / blkid / save.c
index cdbaabc..3600260 100644 (file)
@@ -102,7 +102,7 @@ int blkid_flush_cache(blkid_cache cache)
        }
 
        if (!file) {
-               file = fopen(filename, "w");
+               file = fopen_for_write(filename);
                opened = filename;
        }