[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Wed Jul 27 18:10:02 MDT 2011


The branch, master has been updated
       via  d82256c Use existing ISDOT and ISDOTDOT macros.
      from  9cde691 nbt: fix WinXP S3 domain join: alignment of nbt_netlogon_response_from_pdc

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit d82256ca119eb8315cc69ba725ba71c386caa901
Author: Jeremy Allison <jra at samba.org>
Date:   Mon Jul 25 16:12:45 2011 -0700

    Use existing ISDOT and ISDOTDOT macros.
    
    Autobuild-User: Jeremy Allison <jra at samba.org>
    Autobuild-Date: Thu Jul 28 02:09:20 CEST 2011 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/smbd/filename.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index ec8d113..610a4ce 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -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);


-- 
Samba Shared Repository


More information about the samba-cvs mailing list