svn commit: samba r7458 - in branches/SAMBA_4_0/source/ntvfs/posix: .

metze at samba.org metze at samba.org
Fri Jun 10 08:24:34 GMT 2005


Author: metze
Date: 2005-06-10 08:24:34 +0000 (Fri, 10 Jun 2005)
New Revision: 7458

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

Log:
don't look at components[-1] :-)
we now survive the RAW-UNLINK test without crashing

metze

Modified:
   branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c	2005-06-10 08:00:02 UTC (rev 7457)
+++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_resolve.c	2005-06-10 08:24:34 UTC (rev 7458)
@@ -392,12 +392,14 @@
 			memmove(&components[i], &components[i+1], 
 				sizeof(char *)*(num_components-i));
 			i--;
+			continue;
 		}
 		if (strcmp(components[i], "..") == 0) {
 			if (i < 1) return NT_STATUS_OBJECT_PATH_SYNTAX_BAD;
 			memmove(&components[i-1], &components[i+1], 
 				sizeof(char *)*(num_components-(i+1)));
 			i -= 2;
+			continue;
 		}
 	}
 



More information about the samba-cvs mailing list