VFS: SAMBA 2.2.5 ( correction ) inconsistent default_vfs_ops.open

troutb at abclabs.com troutb at abclabs.com
Wed Jul 17 12:45:02 GMT 2002


The first code snip should read:

   fd = default_vfs_ops.open(conn,inname,flags,mode);
   return fd;



> If a file does not exists the following code fails and cause windows to issue
> permission error.
>
> fd = default_vfs_ops.open(conn,inname,flags,mode);
> return;
>
> This code works as expected returning a message to windows "does exist do you want
> to create"
>
> return default_vfs_ops.open(conn,inname,flags,mode);
>
> ( these call would have following parameter values:
> inname = x.txt
> flags = 2
> mode = 436
> )
>
> if you hard code the flags parameter to 66 the first bit of code works. ??
>
> Can anyone shed some light on this.
>
> by the way ... I have found that cut/paste or winword don't do this!



Download this as a file









More information about the samba-technical mailing list