[PATCH] XCOPY: Hack/Workaround for filenames starting with a '.'
Jason Edmeades
us at edmeades.me.uk
Sat Mar 31 15:49:30 CDT 2007
ActiveState installer uses xcopy to copy the unzipped tree across
which contains a number of files like '.packlist'. GetFileAttributes
flags these as hidden, and because /h is not supplied, xcopy skips
them. Since they would get copied on windows, default the copying
of hidden and system files on as a workaround to this problem
---
programs/xcopy/xcopy.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/programs/xcopy/xcopy.c b/programs/xcopy/xcopy.c
index dfbb41d..f132dcb 100644
--- a/programs/xcopy/xcopy.c
+++ b/programs/xcopy/xcopy.c
@@ -130,6 +130,13 @@ int main (int argc, char *argv[])
}
}
+ /* FIXME: On UNIX, files starting with a '.' are treated as hidden under
+ wine, but on windows these can be normal files. At least one installer
+ uses files such as .packlist and (validly) expects them to be copied.
+ Under wine, if we do not copy hidden files by default then they get
+ lose */
+ flags |= OPT_COPYHIDSYS;
+
/* Skip first arg, which is the program name */
argvW++;
--
1.5.0
More information about the wine-patches
mailing list