mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
r2219: Remember to count bad_components only on pathname boundaries.
Jeremy. (This used to be commit ee8ac9e51a0aefd41df56de4d6deac522bdee4a3)
This commit is contained in:
parent
a34e4db047
commit
b755bdaa8e
@ -149,10 +149,10 @@ NTSTATUS check_path_syntax(pstring destname, const pstring srcname, BOOL allow_w
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
}
|
||||
start_of_name_component = False;
|
||||
if (num_bad_components) {
|
||||
if (start_of_name_component && num_bad_components) {
|
||||
num_bad_components++;
|
||||
}
|
||||
start_of_name_component = False;
|
||||
}
|
||||
|
||||
if (NT_STATUS_EQUAL(ret, NT_STATUS_OBJECT_NAME_INVALID)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user