inode_update_lte_ptr(lte->lte_inode, lte, NULL);
free_lookup_table_entry(lte);
} else {
- wimlib_assert(<e->file_on_disk == <e->staging_file_name);
+ BUILD_BUG_ON(<e->file_on_disk != <e->staging_file_name);
lte->resource_entry.original_size = stbuf.st_size;
lte->resource_entry.size = stbuf.st_size;
lte->resource_location = RESOURCE_IN_FILE_ON_DISK;
return WIMLIB_ERR_NOTDIR;
}
- p = dir_path;
- while (*p) {
+ for (p = dir_path; *p; p++)
if (*p == '/')
*p = 0xff;
- p++;
- }
ctx->unmount_to_daemon_mq_name = strcat_dup(u2d_prefix, dir_path,
NAME_MAX);
unsigned num_additional_swms,
const char *staging_dir)
{
- int argc = 0;
+ int argc;
char *argv[16];
int ret;
char *dir_copy;
if (!dir_copy)
goto out_free_message_queue_names;
+ argc = 0;
argv[argc++] = "imagex";
argv[argc++] = dir_copy;