[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: logic of HAVE_STAT_EMPTY_STRING_BUG is inverted?
From: |
Paul Eggert |
Subject: |
Re: logic of HAVE_STAT_EMPTY_STRING_BUG is inverted? |
Date: |
Wed, 20 Sep 2006 15:22:44 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (gnu/linux) |
IIDA Yosiaki <address@hidden> writes:
> But, I see, it is a normal case that stat returns 0.
I don't see a bug here. stat("",...) should never succeed. If that
stat call does succeed, then there's a bug in stat. The "return $1
("", &sbuf) == 0" exits with a nonzero status if stat succeeds, and
the nonzero status counts as failure.