Mailing List Archive

Very minor bug in Cwd.pm: stat() and lstat() can return undef
It turns out that under AFS, you can get back nothing when 'stat'ing a
file you don't own and you don't have an ACL for. So:

#!perl -w
($tdev) = stat("dir");
print "tdev = $tdev\n";

prints:

Use of uninitialized value at xxx line 3

if I don't own "dir" and my ACL for it is "none".

I guess there needs to be some "if (not defined(...))" wrappers around
the returns from where stat() and lstat() get called in Cwd.pm.
This would be a level "low as it can get without being silly" bug.


William