mirror of
https://github.com/samba-team/samba.git
synced 2025-03-03 12:58:35 +03:00
Fix wildcard src with wildcard dest renames.
Jeremy. (This used to be commit 58b39942444e62c9d0f98c2ba6f434d74c244a2b)
This commit is contained in:
parent
3d5fdced72
commit
c2699d2546
@ -3409,6 +3409,9 @@ static BOOL resolve_wildcards(const char *name1, char *name2)
|
||||
if (*p2 == '?') {
|
||||
*p2 = *p;
|
||||
p2++;
|
||||
} else if (*p2 == '*') {
|
||||
pstrcpy(p2, p);
|
||||
break;
|
||||
} else {
|
||||
p2++;
|
||||
}
|
||||
@ -3422,6 +3425,9 @@ static BOOL resolve_wildcards(const char *name1, char *name2)
|
||||
if (*p2 == '?') {
|
||||
*p2 = *p;
|
||||
p2++;
|
||||
} else if (*p2 == '*') {
|
||||
pstrcpy(p2, p);
|
||||
break;
|
||||
} else {
|
||||
p2++;
|
||||
}
|
||||
@ -3838,7 +3844,7 @@ directory = %s, newname = %s, last_component_dest = %s, is_8_3 = %d\n",
|
||||
|
||||
if (sysdir_entry) {
|
||||
error = NT_STATUS_OBJECT_NAME_INVALID;
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
error = NT_STATUS_ACCESS_DENIED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user