When lstat returns an error (such as file not found), the value of
authorRob Landley <rob@landley.net>
Sun, 9 Oct 2005 11:16:01 +0000 (11:16 -0000)
committerRob Landley <rob@landley.net>
Sun, 9 Oct 2005 11:16:01 +0000 (11:16 -0000)
commitae907f38f0b35867795befa04640f7346c6be522
tree49aeb3988f24c42fcdf45bba9c1862599f58c505
parentf1048143ee4360affc66c39961f7862ea914400d
When lstat returns an error (such as file not found), the value of
st_mode is random garbage (under uClibc), leading to random triggering
of the S_ISDIR() case when the destination will be a normal file which
doesn't exist yet.  I.E. checking the return value of lstat is not optional.
coreutils/install.c