diff options
author | Wei Zhang <zhangwei198900@gmail.com> | 2019-04-22 20:06:09 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-04-22 20:07:06 -0700 |
commit | 17ff6063a37551e83eebab98616a21bbc7e58764 (patch) | |
tree | fe055fa6fbde3051c8eea86c8b72a9309503c958 /test/syscalls/README.md | |
parent | d6aac9387f6def9fa586f94dca39731fb3f6466d (diff) |
Bugfix: fix fstatat symbol link to dir
For a symbol link to some directory, eg.
`/tmp/symlink -> /tmp/dir`
`fstatat("/tmp/symlink")` should return symbol link data, but
`fstatat("/tmp/symlink/")` (symlink with trailing slash) should return
directory data it points following linux behaviour.
Currently fstatat() a symlink with trailing slash will get "not a
directory" error which is wrong.
Signed-off-by: Wei Zhang <zhangwei198900@gmail.com>
Change-Id: I63469b1fb89d083d1c1255d32d52864606fbd7e2
PiperOrigin-RevId: 244783916
Diffstat (limited to 'test/syscalls/README.md')
0 files changed, 0 insertions, 0 deletions