commit | ae907f38f0b35867795befa04640f7346c6be522 | [log] [tgz] |
---|---|---|
author | Rob Landley <rob@landley.net> | Sun Oct 09 11:16:01 2005 +0000 |
committer | Rob Landley <rob@landley.net> | Sun Oct 09 11:16:01 2005 +0000 |
tree | 49aeb3988f24c42fcdf45bba9c1862599f58c505 | |
parent | f1048143ee4360affc66c39961f7862ea914400d [diff] |
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.