]> wimlib.net Git - wimlib/commitdiff
execute_add_command(): Correctly set WIMLIB_ADD_FLAG_ROOT
authorEric Biggers <ebiggers3@gmail.com>
Sat, 18 May 2013 06:46:04 +0000 (01:46 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Sat, 18 May 2013 06:46:04 +0000 (01:46 -0500)
src/update_image.c

index 317cca8a51d6c10cd99321cf33a78227f298b913..8fa82c8182146c1a9079d568283f28a7104e2bca 100644 (file)
@@ -249,7 +249,7 @@ execute_add_command(WIMStruct *wim,
        }
 
        if (wim_target_path[0] == T('\0'))
-               add_flags |= WIMLIB_ADD_FLAG_ROOT;
+               params.add_flags |= WIMLIB_ADD_FLAG_ROOT;
        ret = (*capture_tree)(&branch, fs_source_path, &params);
        if (ret) {
                ERROR("Failed to build dentry tree for \"%"TS"\"",