aboutsummaryrefslogtreecommitdiff
path: root/editors/vi.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-10-09 11:16:01 +0000
committerRob Landley <rob@landley.net>2005-10-09 11:16:01 +0000
commitae907f38f0b35867795befa04640f7346c6be522 (patch)
tree49aeb3988f24c42fcdf45bba9c1862599f58c505 /editors/vi.c
parentf1048143ee4360affc66c39961f7862ea914400d (diff)
downloadbusybox-ae907f38f0b35867795befa04640f7346c6be522.tar.gz
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.
Diffstat (limited to 'editors/vi.c')
0 files changed, 0 insertions, 0 deletions