From: Mike Swanson Date: Sun, 4 Jun 2017 22:35:34 +0000 (-0700) Subject: update_image.c: Ignore Windows 10 Recycle Bin directories. X-Git-Tag: v1.12.0~9 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=3a803d0087d51ea3caa80378bbae615fa45537c5;ds=sidebyside update_image.c: Ignore Windows 10 Recycle Bin directories. On Windows 10 (possibly earlier versions?), the \$RECYCLE.BIN or \$Recycle.Bin directories are created in the root of a volume. Both case variants here so capture of an NTFS volume from Linux should work, but wouldn't make a difference when capturing on Windows. --- diff --git a/doc/man1/wimcapture.1 b/doc/man1/wimcapture.1 index ffcc798c..da90c6a3 100644 --- a/doc/man1/wimcapture.1 +++ b/doc/man1/wimcapture.1 @@ -317,6 +317,8 @@ used: \\swapfile.sys \\System Volume Information \\RECYCLER +\\$RECYCLE.BIN +\\$Recycle.Bin \\Windows\\CSC .RE .RE diff --git a/src/update_image.c b/src/update_image.c index b6fb67c0..334db386 100644 --- a/src/update_image.c +++ b/src/update_image.c @@ -716,6 +716,8 @@ static const char wincfg[] = "/swapfile.sys\n" "/System Volume Information\n" "/RECYCLER\n" +"/$RECYCLE.BIN\n" +"/$Recycle.Bin\n" "/Windows/CSC\n"; static const tchar *wimboot_cfgfile =