The Samba-Bugzilla – Bug 729
SET_FILE_INFORMATION Ineffective w/o ATTR_NORMAL
Last modified: 2005-11-14 09:24:04 UTC
SMB_COM_DETELE fails with Access Denied if it immediately follows a
TRANS2_SET_FILE_INFORMATION with attributes 0x0000 that *does not specify 0x80
ATTR_NORMAL*. NT 4.0 does not have a problem with ATTR_NORMAL on or off. The
below is a summary capture of jCIFS recursively deleting files and directries,
then removing read-only with a TRANS2_SET_FILE_INFORMATION, and finally failing
to delete the file even though the TRANS2_SET_FILE_INFORMATION was successfull
in removing read-only.
SMB Transaction2 Response FIND_NEXT2, Files: sf.o tables.o telnet.o
toggles.o trace_ds.o util.o xio.o XtGlue.o c3270 version.o x3270if.o
SMB Transaction2 Request FIND_NEXT2, Continue: x3270if.o
SMB Transaction2 Response FIND_NEXT2, Files: x3270if
SMB Find Close2 Request
SMB Find Close2 Response
SMB NT Create AndX Request, Path: \test1\c3270-3.2\XtGlue.c
SMB NT Create AndX Response, FID: 0x1c6b
SMB Transaction2 Request SET_FILE_INFORMATION, FID: 0x1c6b
SMB Transaction2 Response SET_FILE_INFORMATION
SMB Close Request, FID: 0x1c6b
SMB Close Response
SMB Delete Request, Path: \test1\c3270-3.2\XtGlue.c
SMB Delete Response, Error: Access denied
This also occurs in 2.2.7.
Sorry, but the 2.2 is not under development any longer.
If you can reproduce this bug against the latest 3.0 release,
please reopen this bug and change the version in the report.