summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-08-22 20:41:49 +0000
committerGitHub <noreply@github.com>2019-08-22 20:41:49 +0000
commit22b2cc542631eac3edba80e2dcfa220cb19902ca (patch)
tree4781c154eebf80c36d9838bdcd595d65d6aabfde /README.md
parent414cc86c0af09fd44454b93b6dc738316b16c43c (diff)
parentfa50f631979ca66ee80525c0140597fe7f704b9a (diff)
downloadnix-22b2cc542631eac3edba80e2dcfa220cb19902ca.zip
Merge #1109
1109: fix readlink/readlinkat to return too long only when it is long r=asomers a=sendilkumarn Currently readlink returns `ENAMETOOLONG` when the bufferSize is equal to the result size. Consider the below case ```c++ int main(int argc, const char * argv[]) { std::string filename = "/tmp/test-dir/target"; size_t bufferSize = 9; char* buffer = new char[bufferSize]; size_t rc = readlink (filename.c_str(), buffer, bufferSize); // Since `readlink's` output depends on the `bufferSize`. If the`bufferSize` is 9 or greater than // 9 then it will return 9 or else it will return `bufferSize` as the value of `rc`. return 0; } ``` Co-authored-by: Sendil Kumar <sendilkumarn@live.com> Co-authored-by: Sendil Kumar N <sendilkumarn@live.com>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions