X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fextract.c;h=c3b92b07c016509efbdbc386413de50615a54c90;hp=4a9b03998ce0db0392dd4c270a292c6c3b2fb094;hb=5aff98df1f754cd809b88051caad99c58b50dfab;hpb=c1b8c30d561d369889ff1b37d65748cada8d7325 diff --git a/src/extract.c b/src/extract.c index 4a9b0399..c3b92b07 100644 --- a/src/extract.c +++ b/src/extract.c @@ -40,12 +40,6 @@ #include "wimlib_internal.h" #include "xml.h" -#ifdef WITH_NTFS_3G -#include -#include -#endif - - /* Internal */ #define WIMLIB_EXTRACT_FLAG_MULTI_IMAGE 0x80000000 @@ -425,7 +419,6 @@ done: WIMLIBAPI int wimlib_extract_image(WIMStruct *w, int image, const char *output_dir, int flags) { - if (!output_dir) return WIMLIB_ERR_INVALID_PARAM; @@ -433,9 +426,6 @@ WIMLIBAPI int wimlib_extract_image(WIMStruct *w, int image, == (WIMLIB_EXTRACT_FLAG_SYMLINK | WIMLIB_EXTRACT_FLAG_HARDLINK)) return WIMLIB_ERR_INVALID_PARAM; - - /*ntfs_initialize_file_security(*/ - for_lookup_table_entry(w->lookup_table, zero_out_refcnts, NULL); if (image == WIM_ALL_IMAGES) { @@ -447,25 +437,3 @@ WIMLIBAPI int wimlib_extract_image(WIMStruct *w, int image, } } - -WIMLIBAPI int wimlib_apply_image_to_ntfs_volume(WIMStruct *w, int image, - const char *device, int flags) -{ - if ((flags & WIMLIB_EXTRACT_FLAG_NTFS)) { - #ifndef WITH_NTFS_3G - ERROR("wimlib was compiled without support for NTFS-3g, so"); - ERROR("we cannot extract a WIM image while preserving NTFS-"); - ERROR("specific information"); - #endif - if (flags & (WIMLIB_EXTRACT_FLAG_SYMLINK | WIMLIB_EXTRACT_FLAG_HARDLINK)) - return WIMLIB_ERR_INVALID_PARAM; - if (getuid() != 0) { - ERROR("We are not root, but NTFS-3g requires root privileges to set arbitrary"); - ERROR("security data on the NTFS filesystem. Please run this program as root"); - ERROR("if you want to extract a WIM image while preserving NTFS-specific"); - ERROR("information."); - - return WIMLIB_ERR_NOT_ROOT; - } - } -}