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 decide via stat,
>> whether the file in question is a symlink or a not.
>
>Use lstat().

Oh my, I feel so stupid right now.
I wonder why during my research I missed the obvious.

Thanx, Michael



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to