X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fntfs-capture.c;h=9a8991ec0587e05cbe93a67989499d5be64293ce;hb=cdda846b47fae4633ba1084472c982766592ac10;hp=cd534a21cb507c8533a1f5e3d7c44d7011053a0a;hpb=20dac4a44f74de14a71c2445d23f79cf56728cfe;p=wimlib diff --git a/src/ntfs-capture.c b/src/ntfs-capture.c index cd534a21..9a8991ec 100644 --- a/src/ntfs-capture.c +++ b/src/ntfs-capture.c @@ -24,7 +24,14 @@ * along with wimlib; if not, see http://www.gnu.org/licenses/. */ + #include "config.h" + +#ifdef WITH_NTFS_3G +#include +#include +#endif + #include "wimlib_internal.h" @@ -288,7 +295,8 @@ static int capture_ntfs_streams(struct dentry *dentry, ntfs_inode *ni, lte = NULL; } else { if (type == AT_REPARSE_POINT && data_size < 8) { - ERROR("`%s': reparse point buffer too small"); + ERROR("`%s': reparse point buffer too small", + path); ret = WIMLIB_ERR_NTFS_3G; goto out_put_actx; } @@ -566,11 +574,13 @@ static int build_dentry_tree_ntfs_recursive(struct dentry **root_p, if (ret != 0) return ret; } else { + #ifdef ENODATA if (errno != ENODATA) { ERROR_WITH_ERRNO("Error getting DOS name " "of `%s'", path); return WIMLIB_ERR_NTFS_3G; } + #endif } }