[Samba] Code? or Test Pattern?

June 23rd, 2011 - 09:40 pm ET by Kenji Ichinoseki | Report spam
My name is Kenji Ichinoseki and I am in charge of
a project at Sumitomo Electric Networks, Inc.

Please give me cooperation by all means about the affair in the account of a title.
Now, I included "Samba 3.0.37" in the Linux system currently developed (us).
And it is testing using "smbtorture(samba3.5.8 source4) ".

The point in question was found in our entry of this test.
It has a question to implementation of "smbtorture" of "MODE_INFORMATION"
which is an entry of a "RAW-SFILEINFO" test.

http://samba.org/samba/devel/smbtor...ctions.txt


-
Request is made using the MODE_INFORMATION (1016) info level. File is
referenced by NAME.
Set file mode to 0.

SMBTorture Output: None.

Tests/Expectations:
Server should respond with NT_STATUS_OK
MODE_INFORMATION query response should show that the file mode is set to 0.
Notes:
Same test as above except the file is referenced by name.
-

Please see "source4/torture/raw/setfileinfo.c."

In "CHECK_CALL_PATH" in the 409th line of a version 3.5.8, "2" is set up to "mode".

-
printf("test mode_information level");
sfinfo.mode_information.in.mode = 2;
CHECK_CALL_FNUM(MODE_INFORMATION, NT_STATUS_OK);
CHECK_VALUE(MODE_INFORMATION, mode_information, mode, 2);

CHECK_CALL_PATH(MODE_INFORMATION, NT_STATUS_OK);
CHECK_VALUE(MODE_INFORMATION, mode_information, mode, 0);

sfinfo.mode_information.in.mode = 1;
-

This is the same also in version "3.5.9" and "4.0.0 alpha15."

I think that I should perform "sfinfo.mode_information.in.mode = 0;",
before executing "CHECK_CALL_PATH", but is this understanding a mistake?

Or is it a mistake in a document?

Kenji.

-
Kenji Ichinoseki (ichinoseki@sei-networks.com)



To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
email Follow the discussionReplies 6 repliesReplies Make a reply

Replies

#1 Volker Lendecke
June 24th, 2011 - 03:50 am ET | Report spam
On Fri, Jun 24, 2011 at 10:17:29AM +0900, Kenji Ichinoseki wrote:
My name is Kenji Ichinoseki and I am in charge of
a project at Sumitomo Electric Networks, Inc.

Please give me cooperation by all means about the affair
in the account of a title. Now, I included "Samba 3.0.37"
in the Linux system currently developed (us). And it is
testing using "smbtorture(samba3.5.8 source4) ".



Please be aware that Samba 3.0 is out of support for a while
now. You might be much better off to go with a much more
recent version of Samba.

I think that I should perform
"sfinfo.mode_information.in.mode = 0;", before executing
"CHECK_CALL_PATH", but is this understanding a mistake?

Or is it a mistake in a document?



In this respect, code is always boss. So probably the
document just has a bug.

With best regards,

Volker Lendecke

SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

Similar topics