commit | b7923b42005a6b4d8bbd0176241757acae04f33d | [log] [tgz] |
---|---|---|
author | Eric Pouech <eric.pouech@wanadoo.fr> | Tue Dec 26 17:51:24 2006 +0100 |
committer | Alexandre Julliard <julliard@winehq.org> | Wed Dec 27 13:02:36 2006 +0100 |
tree | 1118e4008221a520f3bdc040f43a16402f661ab3 | |
parent | bad343433096b66fb577f56656efe4bac781f5f6 [diff] [blame] |
cmd: Fix 'copy foo bar/' which gave access denied errors.
diff --git a/programs/cmd/builtins.c b/programs/cmd/builtins.c index 8a79b98..08972e5 100644 --- a/programs/cmd/builtins.c +++ b/programs/cmd/builtins.c
@@ -126,6 +126,8 @@ } GetFullPathName (param2, sizeof(outpath), outpath, NULL); + if (outpath[strlen(outpath) - 1] == '\\') + outpath[strlen(outpath) - 1] = '\0'; hff = FindFirstFile (outpath, &fd); if (hff != INVALID_HANDLE_VALUE) { if (fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {