svn commit: samba r9533 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Tue Aug 23 17:53:16 GMT 2005


Author: jra
Date: 2005-08-23 17:53:13 +0000 (Tue, 23 Aug 2005)
New Revision: 9533

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=9533

Log:
Fix for bug #2152, championed by Neil Hoggarth <neil.hoggarth at physiol.ox.ac.uk>.
Jeremy.

Modified:
   trunk/source/smbd/mangle_hash.c


Changeset:
Modified: trunk/source/smbd/mangle_hash.c
===================================================================
--- trunk/source/smbd/mangle_hash.c	2005-08-23 17:53:11 UTC (rev 9532)
+++ trunk/source/smbd/mangle_hash.c	2005-08-23 17:53:13 UTC (rev 9533)
@@ -167,10 +167,6 @@
 	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 @@
 	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;
 



More information about the samba-cvs mailing list