1
0
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:
Jeremy Allison 2004-09-03 20:30:31 +00:00 committed by Gerald (Jerry) Carter
parent a34e4db047
commit b755bdaa8e

View File

@ -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)) {