[Samba] Office2K & file overwriting problems

Jeremy Allison jra at samba.org
Mon Oct 20 20:42:55 GMT 2003


On Mon, Oct 20, 2003 at 04:13:59PM -0400, Rob Naccarato wrote:
> Using Office2K (Word & Excel) on NTWS 4.0 and samba 3.0.0 on Debian
> Linux, kernel 2.4.21.
> 
> 1. Run Excel and create a sheet. Save it to the Samba server. No problem.
> 2. Close the sheet and open a new one (File->New).
> 3. Try to save the new sheet over the first one and Excel gives the
> error: "Cannot save the file. 'H:\test\Book1.xls' is not a valid file name."
> 4. Click 'ok' and click 'Save' in the still existing Save As window.
> It replies: "The file Book1.xls already exists. Do you want to replace the
> existing file?".
> 5. Click "yes" and it works.
> 
> So, in #3 above, it should have worked, but it didn't. No idea why.
> 
> I ran a log level 10 on this and found these entries:
> 
> [2003/10/20 15:51:16, 5] smbd/open.c:open_file_shared1(877)
>   open_file_shared: create new requested for file test/Book1.xls and file already exists.
> [2003/10/20 15:51:16, 5] smbd/files.c:file_free(385)
>   freed files structure 9281 (1 used)
> [2003/10/20 15:51:16, 10] smbd/trans2.c:set_bad_path_error(1785)
>   set_bad_path_error: err = 17 bad_path = 0
> [2003/10/20 15:51:16, 3] smbd/error.c:error_packet(94)
>   error string = File exists
> [2003/10/20 15:51:16, 3] smbd/error.c:error_packet(113)
>   error packet at smbd/trans2.c(1797) cmd=162 (SMBntcreateX) NT_STATUS_NO_SUCH_FILE
> 
> The share definition:
> 
> [pub]
>         path = /export/shares/public
>         guest ok = no
>         browseable = yes
>         read only = no
> 
> Any ideas? Anyone?

This is a known bug with 3.0.0 (the nastiest one we shipped with I think :-( ).
The recent 3.0.1pre release fixes this, I also posted a patch for this problem
which you should be able to find in the mail archies.

Sorry for the problem,

Jeremy.



More information about the samba mailing list