summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-08-15 03:54:45 +0000
committerJeremy Allison <jra@samba.org>2003-08-15 03:54:45 +0000
commit0cb8ef099fd54b7dcc052ff7ecb809f624a15c7f (patch)
treeb980f58f6daecc341cae27bd62e6a194d0b4f61e
parent2efe201fa4082f0aad7360b9f6f21c7683a29e96 (diff)
downloadsamba-0cb8ef099fd54b7dcc052ff7ecb809f624a15c7f.tar.gz
samba-0cb8ef099fd54b7dcc052ff7ecb809f624a15c7f.tar.bz2
samba-0cb8ef099fd54b7dcc052ff7ecb809f624a15c7f.zip
Print out position info, ensure NT_RENAME info level only works
in a directory. Jeremy. (This used to be commit d623a51da07e3077b5dc2f92787a3ca848feb113)
-rw-r--r--source4/torture/raw/qfileinfo.c3
-rw-r--r--source4/torture/raw/setfileinfo.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/source4/torture/raw/qfileinfo.c b/source4/torture/raw/qfileinfo.c
index b1f508cae8..43ab04460f 100644
--- a/source4/torture/raw/qfileinfo.c
+++ b/source4/torture/raw/qfileinfo.c
@@ -661,6 +661,9 @@ BOOL torture_raw_qfileinfo(int dummy)
NAME_PATH_CHECK("INTERNAL_INFORMATION", internal_information, device);
NAME_PATH_CHECK("INTERNAL_INFORMATION", internal_information, inode);
NAME_PATH_CHECK("POSITION_INFORMATION", position_information, position);
+ printf("fnum pos = %.0f, fname pos = %.0f\n",
+ (double)s2->position_information.out.position,
+ (double)s1->position_information.out.position );
NAME_PATH_CHECK("MODE_INFORMATION", mode_information, mode);
NAME_PATH_CHECK("ALIGNMENT_INFORMATION", alignment_information, alignment_requirement);
NAME_PATH_CHECK("ATTRIBUTE_TAG_INFORMATION", attribute_tag_information, attrib);
diff --git a/source4/torture/raw/setfileinfo.c b/source4/torture/raw/setfileinfo.c
index 0048f2e1b0..7645289128 100644
--- a/source4/torture/raw/setfileinfo.c
+++ b/source4/torture/raw/setfileinfo.c
@@ -419,6 +419,10 @@ BOOL torture_raw_sfileinfo(int dummy)
sfinfo.rename_information.in.new_name = path_fname_new+strlen(BASEDIR)+1;
CHECK_CALL_PATH(RENAME_INFORMATION, NT_STATUS_OBJECT_NAME_COLLISION);
+ sfinfo.rename_information.in.new_name = fnum_fname_new;
+ sfinfo.rename_information.in.overwrite = 1;
+ CHECK_CALL_FNUM(RENAME_INFORMATION, NT_STATUS_NOT_SUPPORTED);
+
sfinfo.rename_information.in.new_name = fnum_fname_new+strlen(BASEDIR)+1;
sfinfo.rename_information.in.overwrite = 1;
CHECK_CALL_FNUM(RENAME_INFORMATION, NT_STATUS_OK);