From 6ae54263b77f7663df0c390c496a139bed443b27 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 25 Jul 2011 16:12:45 -0700 Subject: [PATCH] Use existing ISDOT and ISDOTDOT macros. Autobuild-User: Jeremy Allison Autobuild-Date: Thu Jul 28 02:09:20 CEST 2011 on sn-devel-104 (cherry picked from commit d82256ca119eb8315cc69ba725ba71c386caa901) --- source3/smbd/filename.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index c92921edce6..84bdd408e9e 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -849,8 +849,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); -- 2.11.4.GIT