excel can't write files

David Collier-Brown davecb at canada.sun.com
Wed Sep 5 18:37:04 GMT 2001


Joe Meslovich wrote:
> 
> The system in question is a Sun Solaris 8 x86 box, and the locks directory
> is on a local disk. This system is running the 2.2.2-pre code downloaded
> from CVS on 8/31. The download was just after your readbraw fix to reply.c
> with the starpos test.
> 
 I've only looked at this preliminarily but have a
> > > truss file that's interesting.
> > >
> > > 152:    stat64("/usr/local/samba/var/locks", 0x080477F4) = 0
> > > 152:    open("/usr/local/samba/var/locks/connections.tdb", O_RDONLY) = 3
> > > 152:    read(3, " T D B   f i l e\n\0\0\0".., 168)      = 168
> > > 152:    fxstat(2, 3, 0x08047700)                        = 0
> > > 152:    mmap(0x00000000, 1875968, PROT_READ, MAP_SHARED, 3, 0) = 0xDF7F0000

	Ok, the mmap succeeded, of a read-only file to a read-only
	memory segment...

> > > 152:    lseek(3, 40, SEEK_SET)                          = 40
> > > 152:    write(3, "\0\0\0\0", 4)                         Err#9 EBADF

	And then we write to it!  That's probably wrong (;-))


> > > 152:    ioctl(1, TCGETA, 0x08046B94)                    Err#22 EINVAL
> > > 152:    fstat64(1, 0x08046BC0)                          = 0
> > > 152:    kill(17112, SIG#0)                              = 0
> > >
 

--dave
-- 
David Collier-Brown,           | Always do right. This will gratify 
Performance & Engineering Team | some people and astonish the rest.
Americas Customer Engineering  |                      -- Mark Twain
(905) 415-2849                 | davecb at canada.sun.com




More information about the samba-technical mailing list