X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fextract.c;h=d6cc9c45d75ee854382a6c9c4d4fcffc7a02bcd0;hp=3e0e6af3f971407b78cd5d1cffdffe3d600bee0d;hb=ce6b853107173c96fb04754aeb9e250a07bd4a07;hpb=279a9a65b2b92bada2db886bbb546d276987b677 diff --git a/src/extract.c b/src/extract.c index 3e0e6af3..d6cc9c45 100644 --- a/src/extract.c +++ b/src/extract.c @@ -439,9 +439,11 @@ static int extract_dentry_to_stdout(struct wim_dentry *dentry) { int ret = 0; - if (!dentry_is_regular_file(dentry)) { + if (dentry->d_inode->i_attributes & (FILE_ATTRIBUTE_REPARSE_POINT | + FILE_ATTRIBUTE_DIRECTORY)) + { ERROR("\"%"TS"\" is not a regular file and therefore cannot be " - "extracted to standard output", dentry->_full_path); + "extracted to standard output", dentry_full_path(dentry)); ret = WIMLIB_ERR_NOT_A_REGULAR_FILE; } else { struct wim_lookup_table_entry *lte;