file structure leackage/out of file structures

Andy Bakun abakun at reac.com
Tue Jun 22 16:02:45 GMT 1999


The following patch, provided to me by Matt Chapman, fixes the "Out of file structures!" error I was getting when copying cds to a samba server as
documented in http://us1.samba.org/listproc/samba-technical/3728.html

With this patch applied, I am unable to reproduce the problem.  This fix gets a thumbs-up from me.

Matt Chapman wrote:

> --- nttrans.orig        Tue Jun 22 13:45:05 1999
> +++ nttrans.c   Tue Jun 22 13:45:26 1999
> @@ -791,6 +791,8 @@
>                                 if(oplock_request || (desired_access & (FILE_READ_DATA|FILE_WRITE_DATA|
>                                                                                                 FILE_APPEND_DATA|FILE_READ_ATTRIBUTES|FILE_READ_EA|
>                                                                                                 FILE_WRITE_ATTRIBUTES|FILE_WRITE_EA))) {
> +                                       file_free(fsp);
> +                                       restore_case_semantics(file_attributes);
>                                         SSVAL(outbuf, smb_flg2, FLAGS2_32_BIT_ERROR_CODES);
>                                         return(ERROR(0, 0xc0000000|NT_STATUS_FILE_IS_A_DIRECTORY));
>                                 }



More information about the samba-technical mailing list