|
From: | Aaron Bentley |
Subject: | Re: [Gnu-arch-users] [HEY TOM!] unhelpful error for unreadable directories |
Date: | Sat, 24 Apr 2004 12:16:59 -0400 |
User-agent: | Mozilla Thunderbird 0.5 (X11/20040306) |
Tom Lord wrote:
But it is impossible to write usefully correct code that would print only: "%s is not readable\n", path (The message printed may be correct but it may not be what the actual problem was.)
One way to address the problem would be to put a test for readability before the stat. That would be a pessimization, but it would have the same behaviour as doing the test after the stat if the stat failed.
Since unreadable directories are a showstopper, what's wrong with reporting that problem if it's encountered?
Aaron
[Prev in Thread] | Current Thread | [Next in Thread] |