]> wimlib.net Git - wimlib/commitdiff
update_image.c: Ignore Windows 10 Recycle Bin directories.
authorMike Swanson <mikeonthecomputer@gmail.com>
Sun, 4 Jun 2017 22:35:34 +0000 (15:35 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 5 Jun 2017 00:04:30 +0000 (17:04 -0700)
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.

doc/man1/wimcapture.1
src/update_image.c

index ffcc798c387a1341ede5388f97db96f3d6159592..da90c6a3c24536e9ff72e71feab467967f38746d 100644 (file)
@@ -317,6 +317,8 @@ used:
 \\swapfile.sys
 \\System Volume Information
 \\RECYCLER
+\\$RECYCLE.BIN
+\\$Recycle.Bin
 \\Windows\\CSC
 .RE
 .RE
index b6fb67c095d23c670a8a3b590ac27e1b1c2b8716..334db3862e526ec2294b9d636fe3a58aad5a2992 100644 (file)
@@ -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 =