svn commit: samba r24968 - in branches/SAMBA_3_2_0/source: include libsmb

Derrell Lipman derrell.lipman at unwireduniverse.com
Thu Sep 6 12:10:38 GMT 2007


On 9/5/07, idra at samba.org <idra at samba.org> wrote:
> Author: idra
> Date: 2007-09-05 12:53:38 +0000 (Wed, 05 Sep 2007)
> New Revision: 24968
>
> WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24968
>
> Log:
>
> Fwd port "open" patch
> --- branches/SAMBA_3_2_0/source/libsmb/libsmbclient.c   2007-09-05 12:53:04 UTC (rev 24967)
> +++ branches/SAMBA_3_2_0/source/libsmb/libsmbclient.c   2007-09-05 12:53:38 UTC (rev 24968)
> @@ -5981,7 +5981,7 @@
>
>          /* What if the path is empty, or the file exists? */
>
> -        return context->open(context, fname, O_WRONLY, 666);
> +        return (context->open)(context, fname, O_WRONLY, 666);
>
>  }
>
> @@ -6022,7 +6022,7 @@
>
>          /* Try to open the file for reading ... */
>
> -        if ((long)(fid1 = c_file->open(c_file, fname, O_RDONLY, 0666)) < 0) {
> +        if ((long)(fid1 = (c_file->open)(c_file, fname, O_RDONLY, 0666)) < 0) {
>
>                  DEBUG(3, ("Error, fname=%s, errno=%i\n", fname, errno));
>                  return -1;  /* smbc_open sets errno */
>

Simo, libsmbclient is full of these (not just with 'open').  Is there
a general issue that needs addressing for some reason?

Derrell


More information about the samba-technical mailing list