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 317cca8..8fa82c8 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"\"",