do_wimlib_extract_image(): Do not allow GLOB_PATHS
authorEric Biggers <ebiggers3@gmail.com>
Fri, 17 Jan 2014 03:52:04 +0000 (21:52 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 17 Jan 2014 03:52:04 +0000 (21:52 -0600)
src/extract.c

index 28ebc55..8bbf3e7 100644 (file)
@@ -2853,7 +2853,8 @@ do_wimlib_extract_image(WIMStruct *wim,
        int ret;
 
        if (extract_flags & (WIMLIB_EXTRACT_FLAG_NO_PRESERVE_DIR_STRUCTURE |
-                            WIMLIB_EXTRACT_FLAG_TO_STDOUT))
+                            WIMLIB_EXTRACT_FLAG_TO_STDOUT |
+                            WIMLIB_EXTRACT_FLAG_GLOB_PATHS))
                return WIMLIB_ERR_INVALID_PARAM;
 
        if (image == WIMLIB_ALL_IMAGES)