Samba 2.2 alpha3 released
Jeremy Allison
jeremy at valinux.com
Mon Mar 26 05:27:37 GMT 2001
On Sun, Mar 25, 2001 at 06:08:34PM -0600, David W. Chapman Jr. wrote:
> I'm not sure if I got it in the log, but the first time I attempted it
> worked, it does that even now and then, then I tried it a few times with no
> luck.
>
> allocated file structure 494, fnum = 4590 (1 used)
> [2001/03/25 18:06:24, 10] smbd/open.c:open_file_shared(559)
> open_file_shared: fname = ~test~bk.tst, share_mode = c0, ofun = 12, mode =
> 640, oplock request = 3
> [2001/03/25 18:06:24, 8] lib/util.c:is_in_path(1182)
> is_in_path: ~test~bk.tst
> [2001/03/25 18:06:24, 8] lib/util.c:is_in_path(1187)
> is_in_path: no name list.
> [2001/03/25 18:06:24, 3] lib/util.c:unix_clean_name(384)
> unix_clean_name [~test~bk.tst]
> [2001/03/25 18:06:24, 4] smbd/open.c:open_file_shared(682)
> calling open_file with flags=0x0 flags2=0x600 mode=0640
> [2001/03/25 18:06:24, 10] smbd/open.c:fd_open(52)
> fd_open: name ~test~bk.tst, mode = 416, fd = 18.
> [2001/03/25 18:06:24, 2] smbd/open.c:open_file(191)
> POSEIDEN opened file ~test~bk.tst read=Yes write=No (numopen=1)
> [2001/03/25 18:06:24, 5] smbd/files.c:file_free(305)
> freed files structure 4590 (0 used)
> [2001/03/25 18:06:24, 3] smbd/error.c:error_packet(138)
> error packet at line 1671 cmd=45 (SMBopenX) eclass=1 ecode=5
> [2001/03/25 18:06:24, 3] smbd/error.c:error_packet(143)
> error string = Function not implemented
Ok - I'm not getting enough information here. From the
log (which still has bloody timestamps btw. :-), I see
the open succeed, then smbd return an error (access
denied).
Looking at the logic in smbd/open.c I can't see what
can make this happen (once the open_file has succeeded
and returned True then fsp_open should be true and everything
should continue). The ENOSYS error should be irrelevent,
I need to see in greater detail what is happening here.
Can you send me the app that reproduces this and give
me information on how to reproduce it ? If not, can
you hack in some extra debug statements in smbd/open.c
around line 684 (the call to "open_file") print out
what is returned and where it exits the "open_file_shared"
function ? If you don't know how to do this let me know
and I'll send a quick patch to add these (not for general
consumption).
Jeremy.
--
--------------------------------------------------------
Buying an operating system without source is like buying
a self-assembly Space Shuttle with no instructions.
--------------------------------------------------------
More information about the samba-ntdom
mailing list