SUMMARY: Auto-mounter weirdness on 4.1.3

From: Amir J Katz (matis!amir)
Date: Sun Nov 01 1992 - 08:51:07 CST


Recently, I have asked the following:

> I have YP and automounter running without a hitch on SparcStation 1+
> with SunOS 4.1.3. However, when I type:
> ls -l ~user/
> it says:
> /home/user/ -> /tmp_mnt/home/user/
>
> On 4.1.1 and 4.1.2 it will show the files. What's going on here?
> All hosts (4.1.1, 4.1.2 and 4.1.3) are on the YP domain.

First prize goes to Rich Schultz <rich@ccrwest.org> who says:
------------------------------------------------------
This has nothing to do with the automounter. The lstat system call has changed
in 4.1.3. Whether this is a bug or a feature, I still don't know, although I
have told the Sun hotline about it.

In 4.1.2, lstat("foo",...), where "foo" is a symbolic link, returns status
about the link, but lstat("foo/",...) returns status about the directory to
which foo points. The trailing "/" is significant. In 4.1.3, the trailing "/"
is no longer significant, and both lstat calls return status about the link.
You can see the effect in the "ls" command, which uses lstat. If you try
        ls -l ~user/.
you'll see your old stuff again.
------------------------------------------------------

Thanks also to Ray Brownrigg <Ray.Brownrigg@isor.vuw.ac.nz> who said:
------------------------------------------------------
Apparently it is part of the movement towards Solaris or System V
Release 4; a null directory name is treated differently by the kernel.
I can confirm that not following symbolic links in the manner you
describe seems to be a 'feature' of system V. A Silicon Graphics Iris
on our campus behaves the same way.
------------------------------------------------------

-- 
/* ----------------------------------------------------------- */
/*  Amir J. Katz             |   amir@matis.ingr.COM           */
/*  System Specialist        |   Voice:  +972 52-584684        */
/*  SEE Technologies Ltd.    |   Fax:    +972 52-543917        */
/* ............ Solaris 2.0 - The Final Frontier ? ........... */



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:53 CDT