diff options
author | Jeremy Allison <jra@samba.org> | 2004-09-03 20:30:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:52:36 -0500 |
commit | b755bdaa8eb7428e5da376762cd88ca416220682 (patch) | |
tree | 96a64876e611a5b5e392229a671fe45a3e34e712 | |
parent | a34e4db047ae457fb79a84a520fc802b70268f4f (diff) | |
download | samba-b755bdaa8eb7428e5da376762cd88ca416220682.tar.gz samba-b755bdaa8eb7428e5da376762cd88ca416220682.tar.bz2 samba-b755bdaa8eb7428e5da376762cd88ca416220682.zip |
r2219: Remember to count bad_components only on pathname boundaries.
Jeremy.
(This used to be commit ee8ac9e51a0aefd41df56de4d6deac522bdee4a3)
-rw-r--r-- | source3/smbd/reply.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index d26ab654fa..565046061c 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -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)) { |