From ab63c481af59b1076ce9e3c5b5c7ec3b125e53e1 Mon Sep 17 00:00:00 2001 From: hjp Date: Thu, 17 Sep 1998 10:30:18 +0000 Subject: [PATCH] Don't follow symlinks. --- waste/waste.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waste/waste.pl b/waste/waste.pl index 0a335da..9c2fabb 100755 --- a/waste/waste.pl +++ b/waste/waste.pl @@ -35,7 +35,7 @@ sub waste { $filename = $dir . "/" . $i; ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size, $atime,$mtime,$ctime,$blksize,$blocks) = - stat($filename); + lstat($filename); if (-d _) { ($size, $mtime, $atime) = waste($filename);