The Windows FindExecutable API called from Windows XP will give an error (usually 31) when trying to find the executable program for a file with .html extension stored on Samba.
It returns the correct executable if the file is renamed with the .htm extension.
It returns the correct exectuable if the API is called from a Win9x machine.
below is a little program to use to demonstrate problem
main(int argc, char *argv)
if (argc != 3)
fprintf(stderr, "usage: %s directory file\n", argv);
exepath = '\0';
printf("About to FindExecutable(\"%s\", \"%s\", ...)\n", argv, argv);
status = FindExecutable(argv, argv, exepath);
printf("==> %d, path: \"%s\"\n", status, exepath == '\0' ? "ERROR!!" : exepath);
Could you please attach two sniffs taken with ethereal, one when doing the request against a Windows server and the other one against a Samba server? This way we can find out the difference.
And please try with Samba version 3.0.22, since 3.0.9 there have been dramatic changes, in particular in the open code.
Created attachment 1896 [details]
Capture reading html on Samba from Windows XP
Having not used ethereal before I hopw this is what you are after
The reading html on windows from windows has corrupted. I will redo and upload as soon as I can
Created attachment 1897 [details]
Capture reading html on Windows from Windows XP
This is reading the same file stored on WindowsXP.
This is a large capture and as I am not familiar with Ethereal I hopw it is what you want.