Samba 3.0.5pre1 Available for Download

Mark Proehl m.proehl at science-computing.de
Thu May 27 15:09:18 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jeremy,

with 3.0.5pre1 relative symlinks are really working. Thanks for solving that 
problem.

But I think, the other problem (symlink in the path to the share) is not 
fixed. Look at this configuration:

  $ cat /usr/local/samba-3.0.5pre1/lib/smb.conf
   [global]
       passdb backend = smbpasswd
       log level = 3
       log file = /var/samba/log.%m
       follow symlinks = yes
       wide links = no
    [test]
      path = /tmp/test
      readonly = no
  $ ls -ld /tmp/test
  drwxr-x---    3 proehl   s+c          4096 May 27 16:49 /tmp/test
  $ /usr/local/samba-3.0.5pre1/bin/smbclient '\\hydra\test'
  Password:
  Domain=[HYDRA] OS=[Unix] Server=[Samba 3.0.5pre1]
  smb: \> dir
    .                                   D        0  Thu May 27 16:49:28 2004
    ..                                  D        0  Thu May 27 16:54:25 2004
    dir                                 D        0  Thu May 27 16:49:46 2004
    file                                         0  Thu May 27 16:49:28 2004

so far, everything works fine. But if I replace the directory "test" by a 
symlink, I cannot access the share:

  $ mv /tmp/test/ /tmp/TEST 
  $ cd /tmp/
  $ mv test/ TEST
  $ ln -s TEST/ test
  $ ls -ld test
  lrwxrwxrwx    1 proehl   s+c             5 May 27 17:01 test -> TEST//
  $ /usr/local/samba-3.0.5pre1/bin/smbclient '\\hydra\test'
  Password:
  Domain=[HYDRA] OS=[Unix] Server=[Samba 3.0.5pre1]
  smb: \> dir
  NT_STATUS_OBJECT_NAME_NOT_FOUND listing *

                  64176 blocks of size 262144. 26955 blocks available
  smb: \>


Mark Proehl

On Wednesday 26 May 2004 22:21, Jeremy Allison wrote:
> On Wed, May 26, 2004 at 11:10:25AM +0200, Mark Proehl wrote:
> > There is another problem, if the root path of the share (the directory
> > specified by the path directive in smb.conf) itself contains symlinks.
> > For example: our [homes]-Section looks like this:
> >
> >  [homes]
> >    path = /home/%S
> >    directory mask = 0750
> >    readonly = no
> >
> > /home/mark is a symbolik link (created by am-utils automounter)
> > to /net/hostname/home/mark. The code in vfs.c does not handle
> > this situation: vfs_GetWd returns /net/hostname/home/mark/
> > which is saved to the Variable realdir. The variable cleanlink contains
> > the path to the link, starting with /home/mark and strncmp fails.
> >
> > This second problem is not fixed by the small patch in 1188.
>
> I just checked this. It is fixed with the rewrite to use realpath().
>
> This will work in 3.0.5pre1.
>
> Thanks,
>
> Jeremy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAtgSfYsNblx7LJSMRAp4WAJ4/YKrAjOhYzWH7c1S1hC0ZgT2dMQCghytc
ctgEEWRfGVDJuYHzbHRcO4s=
=t1if
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list