[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Konqueror and smb
From:       aleXXX <alexander.neundorf () gmx ! net>
Date:       2001-08-07 19:37:42
[Download RAW message or body]

On Monday 30 July 2001 11:18, Carsten Pfeiffer wrote:
> On Montag, 30. Juli 2001 10:04 Will Stephenson wrote:
> > > Actually, when using the smb protocol with konqueror, it is possible to
> > > read the content of the directories, but I can't write to it. Is this a
> > > configuration problem on my machine, a feature not yet implemented in
> > > the corresponding KIO slave or a limitation of the samba
> > > implementation?

As the message box should say, it is "not implemented"

> > It's a limitation in the IOSlave - which is a wrapper around smbclient.

It's actually a limitation in smbclient, I would have happily implemented it 
in the ioslave.

the following patch in samba/source/client/client.c would have been all it 
needed, but the author told me that I'd better use the upcoming libsmb :-/

-BOOL file_exist(char *fname,SMB_STRUCT_STAT *sbuf)
+BOOL file_fifo_exist(char *fname,SMB_STRUCT_STAT *sbuf)
{
  SMB_STRUCT_STAT st;
  if (!sbuf) sbuf = &st;
  
  if (sys_stat(fname,sbuf) != 0) 
    return(False);

-  return (S_ISREG(sbuf->st_mode));
+  return ((S_ISREG(sbuf->st_mode)) ||(S_ISFIFO(sbuf->st_mode)));
}


static void cmd_put(void)
{
....
-   if (!file_exist(lname,&st) &&
+   if (!file_fifo_exist(lname,&st) &&
    (strcmp(lname,"-"))) {
         DEBUG(0,("%s does not exist\n",lname));
         return;
    }

And it would have been that simple to have this ioslave also being able to 
write :-(

> you could give a hint that if he installs libsmb from the Samba team and
> recompiles kdebase, he will get another, better ioslave, that can write,

I heard several times that the libsmb-based ioslave is currently in a 
not-that-good shape (not to say it crashes everytime you use it).

Bye
Alex
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic