X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=src%2Funix_apply.c;h=026042bce7219fe1baecfcf5d726b7d40790d73f;hb=962cca1a6f9e45827006a745be086b7af3b725aa;hp=bd576ef08c0f872f04ceb77b940bde72fa67b64a;hpb=ca1be480fd209d8c24e19350e440c01832310a2d;p=wimlib diff --git a/src/unix_apply.c b/src/unix_apply.c index bd576ef0..026042bc 100644 --- a/src/unix_apply.c +++ b/src/unix_apply.c @@ -54,7 +54,7 @@ unix_start_extract(const char *target, struct apply_ctx *ctx) } static int -unix_create_file(const char *path, struct apply_ctx *ctx) +unix_create_file(const char *path, struct apply_ctx *ctx, u64 *cookie_ret) { int fd = open(path, O_TRUNC | O_CREAT | O_WRONLY, 0644); if (fd < 0) @@ -64,7 +64,7 @@ unix_create_file(const char *path, struct apply_ctx *ctx) } static int -unix_create_directory(const tchar *path, struct apply_ctx *ctx) +unix_create_directory(const tchar *path, struct apply_ctx *ctx, u64 *cookie_ret) { struct stat stbuf; @@ -111,10 +111,11 @@ unix_create_symlink(const tchar *oldpath, const tchar *newpath, } static int -unix_extract_unnamed_stream(const tchar *path, +unix_extract_unnamed_stream(file_spec_t file, struct wim_lookup_table_entry *lte, struct apply_ctx *ctx) { + const char *path = file.path; struct filedes fd; int raw_fd; int ret;