X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Flookup_table.c;h=0e4f96a3244a0c917097830afeab1972e8a72dd8;hb=919b97754cedca6f37dd1808b00198dc3cb8bf98;hp=1950ab21a89bbbefb75fc56473ce64936d12753c;hpb=cc7b6ee47d4037ae8fa11b4c2d5154091d543704;p=wimlib diff --git a/src/lookup_table.c b/src/lookup_table.c index 1950ab21..0e4f96a3 100644 --- a/src/lookup_table.c +++ b/src/lookup_table.c @@ -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))