Improve readlinkat_dup() to handle symlink size correctly (#4229)

* In readlinkat_dup(), use fstatat() to estimate size first.
* Reduce additional space in samples/file
This commit is contained in:
liang.he
2025-05-09 14:01:29 +08:00
committed by GitHub
parent 6aa223dbf3
commit 1a72dcf34f
2 changed files with 36 additions and 23 deletions

View File

@ -18,7 +18,7 @@
#define WORLD_OFFSET 7
#define NAME_REPLACMENT "James"
#define NAME_REPLACMENT_LEN (sizeof(NAME_REPLACMENT) - 1)
#define ADDITIONAL_SPACE 1 * 1024 * 1024
#define ADDITIONAL_SPACE 16 * 1024
int
main(int argc, char **argv)