Linux sandbox: make BrokerClient::Readlink consistent with kernel
BrokerClient::Readlink returns -ENAMETOOLONG if the buffer is too small for the pathname, but this is inconsistent with POSIX which fills up the buffer with part of the pathname, and only returns -ENAMETOOLONG if the actual pathname is longer than PATH_MAX or an individual pathname component is longer than NAME_MAX. Change-Id: I282f2ead6814bbd799e286a6e80ed5991ceeb54e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2379470 Commit-Queue: Matthew Denton <mpdenton@chromium.org> Reviewed-by:Robert Sesek <rsesek@chromium.org> Reviewed-by:
Tom Sepez <tsepez@chromium.org> Cr-Commit-Position: refs/heads/master@{#802436}
Showing
Please register or sign in to comment