Permalink
Please sign in to comment.
Browse files
Implement readlink -f with libc's realpath() (#147)
This is how busybox does it. coreutils readlink implements its own algorithm in hundreds of lines of C. Python's os.path.realpath() is too lenient. Co-authored-by: Caroline Lin <caroline-lin@users.noreply.github.com> Co-authored-by: Andy Chu <andychu@users.noreply.github.com>
- Loading branch information...
Showing
with
56 additions
and 3 deletions.
- +1 −0 bin/readlink
- +14 −0 gold/readlink.sh
- +22 −0 native/libc.c
- +15 −1 native/libc_test.py
- +4 −2 tools/readlink.py
| @@ -0,0 +1 @@ | ||
| oil.py |
0 comments on commit
a68ab70