svn commit: samba r4407 - in branches/SAMBA_4_0/source/torture/raw: .

tridge at samba.org tridge at samba.org
Thu Dec 30 05:48:33 GMT 2004


Author: tridge
Date: 2004-12-30 05:48:32 +0000 (Thu, 30 Dec 2004)
New Revision: 4407

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

Log:
stricter checking of parameters on hard link creation in the RAW-RENAME test

Modified:
   branches/SAMBA_4_0/source/torture/raw/rename.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/raw/rename.c
===================================================================
--- branches/SAMBA_4_0/source/torture/raw/rename.c	2004-12-30 03:19:27 UTC (rev 4406)
+++ branches/SAMBA_4_0/source/torture/raw/rename.c	2004-12-30 05:48:32 UTC (rev 4407)
@@ -268,6 +268,7 @@
 	status = smb_raw_pathinfo(cli->tree, mem_ctx, &finfo);
 	CHECK_STATUS(status, NT_STATUS_OK);
 	CHECK_VALUE(finfo.all_info.out.nlink, 1);
+	CHECK_VALUE(finfo.all_info.out.attrib, FILE_ATTRIBUTE_NORMAL);
 
 	printf("Checking copy\n");
 	io.ntrename.in.old_name = fname1;
@@ -277,6 +278,13 @@
 	status = smb_raw_rename(cli->tree, &io);
 	CHECK_STATUS(status, NT_STATUS_OK);
 
+	finfo.generic.level = RAW_FILEINFO_ALL_INFO;
+	finfo.generic.in.fname = fname1;
+	status = smb_raw_pathinfo(cli->tree, mem_ctx, &finfo);
+	CHECK_STATUS(status, NT_STATUS_OK);
+	CHECK_VALUE(finfo.all_info.out.nlink, 1);
+	CHECK_VALUE(finfo.all_info.out.attrib, FILE_ATTRIBUTE_NORMAL);
+
 	torture_set_file_attribute(cli->tree, fname1, FILE_ATTRIBUTE_SYSTEM);
 
 	finfo.generic.level = RAW_FILEINFO_ALL_INFO;



More information about the samba-cvs mailing list