cmd: Fix renaming inside directories.
This commit is contained in:
parent
94f9e789c9
commit
c5a72379a1
|
@ -1872,7 +1872,7 @@ void WCMD_rename (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Destination cannot contain a drive letter or directory separator */
|
/* Destination cannot contain a drive letter or directory separator */
|
||||||
if ((strchrW(param1,':') != NULL) || (strchrW(param1,'\\') != NULL)) {
|
if ((strchrW(param2,':') != NULL) || (strchrW(param2,'\\') != NULL)) {
|
||||||
SetLastError(ERROR_INVALID_PARAMETER);
|
SetLastError(ERROR_INVALID_PARAMETER);
|
||||||
WCMD_print_error();
|
WCMD_print_error();
|
||||||
errorlevel = 1;
|
errorlevel = 1;
|
||||||
|
|
|
@ -629,8 +629,8 @@ read-only file renamed
|
||||||
dir renamed
|
dir renamed
|
||||||
read-only dir renamed
|
read-only dir renamed
|
||||||
--- rename in other directory
|
--- rename in other directory
|
||||||
@todo_wine@rename impossible in other directory
|
rename impossible in other directory
|
||||||
@todo_wine@original file still present
|
original file still present
|
||||||
------------ Testing move ------------
|
------------ Testing move ------------
|
||||||
--- file move
|
--- file move
|
||||||
file move succeeded
|
file move succeeded
|
||||||
|
|
Loading…
Reference in New Issue