From ef63b7aadd80805c64b2124e06d14679f05471a2 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 27 Dec 2016 17:24:55 -0600 Subject: [PATCH] Add new error codes for xattr extraction errors --- include/wimlib.h | 2 ++ src/error.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/include/wimlib.h b/include/wimlib.h index ac55fd2c..226c6877 100644 --- a/include/wimlib.h +++ b/include/wimlib.h @@ -2567,6 +2567,8 @@ enum wimlib_error_code { WIMLIB_ERR_DUPLICATE_EXPORTED_IMAGE = 87, WIMLIB_ERR_CONCURRENT_MODIFICATION_DETECTED = 88, WIMLIB_ERR_SNAPSHOT_FAILURE = 89, + WIMLIB_ERR_INVALID_XATTR = 90, + WIMLIB_ERR_SET_XATTR = 91, }; diff --git a/src/error.c b/src/error.c index 26fc10a4..cccb815f 100644 --- a/src/error.c +++ b/src/error.c @@ -342,6 +342,10 @@ static const tchar * const error_strings[] = { = T("A file being added to a WIM image was concurrently modified"), [WIMLIB_ERR_SNAPSHOT_FAILURE] = T("Unable to create a filesystem snapshot"), + [WIMLIB_ERR_INVALID_XATTR] + = T("An extended attribute entry in the WIM image is invalid"), + [WIMLIB_ERR_SET_XATTR] + = T("Failed to set an extended attribute on an extracted file"), #ifdef ENABLE_TEST_SUPPORT [WIMLIB_ERR_IMAGES_ARE_DIFFERENT] = T("A difference was detected between the two images being compared"), -- 2.43.0