[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnu-arch-users] [HEY TOM!] unhelpful error for unreadable directori

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

        "%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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]