1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

r2219: Remember to count bad_components only on pathname boundaries.

Jeremy.
This commit is contained in:
Jeremy Allison
2004-09-03 20:30:31 +00:00
committed by Gerald (Jerry) Carter
parent beda1aee79
commit ee8ac9e51a

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