mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
pvfs_resolve: fix endless loop with trailing ".."
We also need to move the NULL termination. metze
This commit is contained in:
parent
02071f151a
commit
4fc41065a3
@ -399,7 +399,7 @@ static NTSTATUS pvfs_reduce_name(TALLOC_CTX *mem_ctx,
|
||||
if (ISDOTDOT(components[i])) {
|
||||
if (i < 1) return NT_STATUS_OBJECT_PATH_SYNTAX_BAD;
|
||||
memmove(&components[i-1], &components[i+1],
|
||||
sizeof(char *)*(num_components-(i+1)));
|
||||
sizeof(char *)*(num_components-i));
|
||||
i -= 2;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user