]> wimlib.net Git - wimlib/blobdiff - src/lookup_table.c
Update mount implementation
[wimlib] / src / lookup_table.c
index 1950ab21a89bbbefb75fc56473ce64936d12753c..0e4f96a3244a0c917097830afeab1972e8a72dd8 100644 (file)
@@ -269,7 +269,8 @@ lte_decrement_refcnt(struct wim_lookup_table_entry *lte,
                         * that there still may be open file descriptors to it.)
                         * */
                        if (lte->resource_location == RESOURCE_IN_STAGING_FILE)
-                               unlink(lte->staging_file_name);
+                               unlinkat(lte->staging_dir_fd,
+                                        lte->staging_file_name, 0);
                #endif
                } else {
                        if (!should_retain_lte(lte))