summaryrefslogtreecommitdiffhomepage
path: root/runsc
diff options
context:
space:
mode:
authorWei Zhang <zhangwei198900@gmail.com>2019-04-22 20:06:09 -0700
committerShentubot <shentubot@google.com>2019-04-22 20:07:06 -0700
commit17ff6063a37551e83eebab98616a21bbc7e58764 (patch)
treefe055fa6fbde3051c8eea86c8b72a9309503c958 /runsc
parentd6aac9387f6def9fa586f94dca39731fb3f6466d (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 'runsc')
0 files changed, 0 insertions, 0 deletions