Re: perl's stat and symlinks

2002-12-15 Thread Michael Naumann
15.12.2002 18:23:32, Colin Watson <[EMAIL PROTECTED]> wrote: >On Sun, Dec 15, 2002 at 05:31:15PM +0100, Michael Naumann wrote: >> when I do from perl >> @f= stat "f"; >> @sl2f = stat "sl2f"; >> I always get the same contents in @sl2f as in @f, i.e stat follows the link. >> Thus I cannot de

Re: perl's stat and symlinks

2002-12-15 Thread Andrew Perrin
On Sun, 15 Dec 2002, Colin Watson wrote: > On Sun, Dec 15, 2002 at 05:31:15PM +0100, Michael Naumann wrote: > > when I do from perl > > @f= stat "f"; > > @sl2f = stat "sl2f"; > > I always get the same contents in @sl2f as in @f, i.e stat follows the link. > > Thus I cannot decide via stat,

Re: perl's stat and symlinks

2002-12-15 Thread Colin Watson
On Sun, Dec 15, 2002 at 05:31:15PM +0100, Michael Naumann wrote: > when I do from perl > @f= stat "f"; > @sl2f = stat "sl2f"; > I always get the same contents in @sl2f as in @f, i.e stat follows the link. > Thus I cannot decide via stat, > whether the file in question is a symlink or a not.

perl's stat and symlinks

2002-12-15 Thread Michael Naumann
I have a file f and a symlink sl2f to this file. ls -l shows the following: lrwxrwxrwx1 mn users 1 Dec 15 16:22 sl2f -> f -rw-r--r--1 mn users 0 Dec 15 16:23 f when I do from perl @f= stat "f"; @sl2f = stat "sl2f"; I always get the same contents in @