Jason Edmeades : xcopy: Hack/workaround for filenames starting with a '.'.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Apr 2 06:23:21 CDT 2007


Module: wine
Branch: master
Commit: 928f1cb7221cd44c49110dc1e738395c8c0cc851
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=928f1cb7221cd44c49110dc1e738395c8c0cc851

Author: Jason Edmeades <us at edmeades.me.uk>
Date:   Sat Mar 31 21:49:30 2007 +0100

xcopy: Hack/workaround for filenames starting with a '.'.

---

 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++;
 




More information about the wine-cvs mailing list