diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 19:10:28 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-25 19:10:28 +0000 |
commit | e131cf56c776248bb22d234ad806aafb64869e5a (patch) | |
tree | 69d29b97458c45ca253c3e9585dff136e66b70f1 /base/file_descriptor_posix.h | |
parent | e153cff78f5553d39a8c68dd2caf6adf60a2e2f8 (diff) | |
download | chromium_src-e131cf56c776248bb22d234ad806aafb64869e5a.zip chromium_src-e131cf56c776248bb22d234ad806aafb64869e5a.tar.gz chromium_src-e131cf56c776248bb22d234ad806aafb64869e5a.tar.bz2 |
posix: stat() uses errno, not its return value, for errors
l/stat() always return -1 on error, so we must examine errno if we
want to handle errors specially. (This is only used for judging whether
to print an error message, so it's not too harmful.)
TEST=symlink to nowhere in a dir; Chrome should not complain about
that symlink when enumerating files in the directory
Review URL: http://codereview.chromium.org/1352001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42647 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_descriptor_posix.h')
0 files changed, 0 insertions, 0 deletions