Commit Graph

50 Commits

Author SHA1 Message Date
Akihiro Sagawa 373604f253 xcopy: Avoid using isdigit() for WCHARs.
Found with Coccinelle.

Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-17 16:11:29 +02:00
Hans Leidekker 90fd0285f0 xcopy: Ignore the /V option. 2015-01-07 23:48:25 +01:00
Alexandre Julliard 7711f494e3 xcopy: Avoid a potential out of bounds access. 2014-10-27 19:02:49 +09:00
Austin English 7892df6fac xcopy: Clarify a comment. 2013-12-03 12:40:37 +01:00
Francois Gouget 61358d04a4 xcopy: Add tests to show that the /D option only accepts dates in the m-d-y format. 2013-11-29 17:58:40 +01:00
Frédéric Delanoy 9b6715226e xcopy: Use BOOL type where appropriate. 2013-10-15 14:28:20 +02:00
Marcus Meissner a6550abee5 xcopy: Allocate more space for the W buffer (Coverity). 2013-09-30 11:38:08 +02:00
Marcus Meissner ba7b56b225 xcopy: fclose filedescriptor on eof case (Coverity). 2013-07-19 11:51:07 +02:00
André Hentschel 69f2ac0d52 xcopy: Fix indentation of a break (coverity). 2012-11-08 15:37:52 +01:00
Jason Edmeades 4a13490237 xcopy: Fix resource leak (coverity). 2012-11-06 16:02:42 +01:00
Francois Gouget ec5e3a3b50 xcopy: Use the CSTR_XXX macros instead of numeric literals. 2012-06-21 08:34:56 +02:00
Alexandre Julliard c9eee73450 makefiles: Define __WINESRC__ when building programs. 2012-01-23 16:07:37 +01:00
André Hentschel fd4afaf639 xcopy: Fix a typo. 2012-01-11 17:47:26 +01:00
Alexandre Julliard 6b59b05244 xcopy: Fix varargs handling for 64-bit. 2011-10-20 17:05:19 +02:00
Francois Gouget 0cdabdd648 xcopy: Use FormatMessage() for better internationalization support.
This makes it possible to reorder the format string placeholders in message translations.
2011-10-18 18:37:45 +02:00
Francois Gouget 8a7bc4c727 xcopy: Reorder the functions to avoid forward declarations. 2011-10-18 18:30:09 +02:00
Francois Gouget c992ca277d Assorted spelling fixes. 2011-08-24 19:07:46 +02:00
Martin Wilck 20feb4772c xcopy: Assume directory if destination ends with a backslash. 2010-11-05 11:28:06 +01:00
Martin Wilck 766f6b0b4b xcopy: Fix command line parsing logic.
Experiments show xcopy under Windows does not use argc/argv logic for
treating double quotes and backslashes. The xcopy logic is simplified
because literal quotes are illegal in Windows file names, thus escaped
double quotes (\") need not be treated.  'XCOPY "c:\dir a" "c:\dir
b\"' works under Windows.
2010-10-27 11:59:24 +02:00
Martin Wilck b62c0d23f7 xcopy: Move command line parsing code into separate function. 2010-10-27 11:59:05 +02:00
Alexandre Julliard b7da23eb29 xcopy: Do not ignore errors caused by processing parameters. 2010-06-10 11:24:06 +02:00
Gregor Schneider b6a5da06e9 xcopy: Remove unneeded assignment. 2009-12-14 12:04:06 +01:00
Marcus Meissner 1db4c5dc67 xcopy: Handle return from vsnprintfW (Coverity). 2009-01-29 12:48:16 +01:00
Alexandre Julliard 91421f0f02 xcopy.exe: Don't use wvsprintf on sysv-style varargs, use a libwine function instead. 2009-01-03 11:38:26 +01:00
Alexandre Julliard 09874bf78a xcopy.exe: Get rid of remaining uses of Unicode macros. 2008-09-04 14:08:19 +02:00
Francois Gouget 8a18e0e43a Assorted spelling fixes. 2008-04-07 13:36:18 +02:00
Andrew Talbot a8df7fddd5 xcopy: Fix some memory leaks. 2007-10-25 14:26:47 +02:00
Jason Edmeades ea34c87cc3 xcopy.exe: Convert from main to wmain. 2007-06-04 14:49:44 +02:00
Jason Edmeades a2fa763008 xcopy: Output to console in Unicode if possible, or OEM codepage otherwise. 2007-05-02 15:03:19 +02:00
Jason Edmeades 928f1cb722 xcopy: Hack/workaround for filenames starting with a '.'. 2007-04-02 12:04:38 +02:00
Jason Edmeades b8b8f254d8 xcopy: /E implies recursive (fixes ActiveState Perl installer). 2007-04-02 12:04:30 +02:00
Jason Edmeades da977e5579 xcopy: Make displayed names mirror windows. 2007-04-02 12:04:12 +02:00
Jason Edmeades a8914b9494 xcopy: Add help. 2007-04-02 12:04:02 +02:00
Jason Edmeades bb2b2d7d3e xcopy: Update comments with unsupported operations and current status. 2007-04-02 12:03:56 +02:00
Jason Edmeades 9ff8b4be5b xcopy: Move all messages into an English resource file. 2007-04-02 12:03:52 +02:00
Jason Edmeades a5cbc372b3 xcopy: Rearrange code to closely match windows ordering.
Effectively work out if we are interested in a file before worrying
about prompting for copy or overwrite.
2007-04-02 11:42:22 +02:00
Jason Edmeades 3645c30ba1 xcopy: Add support for /D and /D:m-d-y. 2007-04-02 11:41:59 +02:00
Jason Edmeades 54b1d19c5b xcopy: Add support for /EXCLUDELIST:file1+file2 etc. 2007-04-02 11:41:11 +02:00
Jason Edmeades 4794bec1c1 xcopy: Add support for xcopy /A and /M (archive copies). 2007-03-30 10:55:21 +02:00
Jason Edmeades 60e79adb53 xcopy: Add support for /P (Prompt). 2007-03-30 10:55:21 +02:00
Jason Edmeades d742bb632b xcopy: Add support for /C (Continue if errors).
Also fix one place error reporting was missing.
2007-03-30 10:55:21 +02:00
Jason Edmeades 0a3a741a4a xcopy: Add support for /H (Hidden/System). 2007-03-30 10:55:20 +02:00
Jason Edmeades 432d81d704 xcopy: Add support for /R (Replace read only files). 2007-03-30 10:55:20 +02:00
Jason Edmeades 5f8f5eb5be xcopy: Add support for /U (target must exist). 2007-03-30 10:55:20 +02:00
Jason Edmeades fe89021458 xcopy: Add support for /N (shortname copy). 2007-03-30 10:55:20 +02:00
Jason Edmeades 30fcdd9f07 xcopy: Add support for COPYCMD override and fix /-y. 2007-03-30 10:55:20 +02:00
Jason Edmeades 70fe414c2a xcopy: Prompt when overwriting files, add /Y and /-Y support. 2007-03-30 10:55:20 +02:00
Jason Edmeades 59bf2dc341 xcopy: Add support for /T (no copy). 2007-03-30 10:55:20 +02:00
Jason Edmeades cf872445a3 xcopy: Add support for /W (pause). 2007-03-30 10:55:20 +02:00
Jason Edmeades 921edab758 Basic implementation of xcopy. 2007-03-19 14:50:32 +01:00