mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
r9532: Fix for bug #2152, championed by Neil Hoggarth <neil.hoggarth@physiol.ox.ac.uk>.
Jeremy.
(This used to be commit d29a45565d
)
This commit is contained in:
parent
9454668a90
commit
78257e3433
@ -167,10 +167,6 @@ static NTSTATUS is_valid_name(const smb_ucs2_t *fname, BOOL allow_wildcards, BOO
|
||||
if (strcmp_wa(fname, ".")==0 || strcmp_wa(fname, "..")==0)
|
||||
return NT_STATUS_OK;
|
||||
|
||||
/* Name cannot start with '.' */
|
||||
if (*fname == UCS2_CHAR('.'))
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
|
||||
if (only_8_3) {
|
||||
ret = has_valid_83_chars(fname, allow_wildcards);
|
||||
if (!NT_STATUS_IS_OK(ret))
|
||||
@ -247,6 +243,10 @@ static NTSTATUS is_8_3_w(const smb_ucs2_t *fname, BOOL allow_wildcards)
|
||||
if (strcmp_wa(fname, ".") == 0 || strcmp_wa(fname, "..") == 0)
|
||||
return NT_STATUS_OK;
|
||||
|
||||
/* Name cannot start with '.' */
|
||||
if (*fname == UCS2_CHAR('.'))
|
||||
return NT_STATUS_UNSUCCESSFUL;
|
||||
|
||||
if (!NT_STATUS_IS_OK(is_valid_name(fname, allow_wildcards, True)))
|
||||
goto done;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user