mirror of
https://github.com/samba-team/samba.git
synced 2025-03-10 12:58:35 +03:00
Use existing ISDOT and ISDOTDOT macros.
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Jul 28 02:09:20 CEST 2011 on sn-devel-104
This commit is contained in:
parent
9cde691b87
commit
d82256ca11
@ -987,8 +987,7 @@ NTSTATUS check_name(connection_struct *conn, const char *name)
|
||||
{
|
||||
if (IS_VETO_PATH(conn, name)) {
|
||||
/* Is it not dot or dot dot. */
|
||||
if (!((name[0] == '.') && (!name[1] ||
|
||||
(name[1] == '.' && !name[2])))) {
|
||||
if (!(ISDOT(name) || ISDOTDOT(name))) {
|
||||
DEBUG(5,("check_name: file path name %s vetoed\n",
|
||||
name));
|
||||
return map_nt_error_from_unix(ENOENT);
|
||||
|
Loading…
x
Reference in New Issue
Block a user