summaryrefslogtreecommitdiffstats
path: root/src/basic/chase.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* chase: Fix shortcutDaan De Meyer2024-10-041-1/+1
* chase: Tighten "." and "./" checkDaan De Meyer2024-06-111-3/+3
* various: use strdup_to() in various obvious casesZbigniew Jędrzejewski-Szmek2024-03-201-6/+1
* fs-util: rename xopenat() -> xopanat_full()Yu Watanabe2024-02-151-15/+15
* chase: do not wrap xopenat() with RET_NERRNO()Yu Watanabe2024-02-151-8/+8
* chase: fix corner case when using CHASE_PARENT with a path ending in ".."Lennart Poettering2023-11-011-1/+21
* chase: propagate error in dir_fd_is_root()Yu Watanabe2023-07-291-1/+12
* chase: check root path in more detailYu Watanabe2023-07-291-1/+35
* chase: carefully handle result of extracting parent directoryYu Watanabe2023-07-291-2/+18
* chase: add two more assertionsYu Watanabe2023-07-291-0/+2
* chase: drop CHASE_AT_RESOLVE_IN_ROOT earlierYu Watanabe2023-07-291-2/+7
* chase: fix CHASE_STEP with ".."Yu Watanabe2023-07-291-2/+8
* chase: reuse "done" to open fd of starting pointYu Watanabe2023-07-291-14/+11
* Merge pull request #27885 from DaanDeMeyer/please-dont-make-me-write-more-ope...Zbigniew Jędrzejewski-Szmek2023-06-071-1/+0
|\
| * chase: Allow passing NULL as the empty path to chaseat()Daan De Meyer2023-06-061-1/+0
* | Merge pull request #27918 from yuwata/chase-filenameDaan De Meyer2023-06-061-8/+45
|\ \ | |/ |/|
| * chase: handle root path more carefully in chase_and_open()Yu Watanabe2023-06-051-8/+45
* | chase: fix triggering assertionYu Watanabe2023-06-051-1/+1
|/
* fs-util: Add XOpenFlags with XO_LABEL flag to have xopenat() MAC label files/...Daan De Meyer2023-05-311-3/+9
* chase: replace path_prefix_root_cwd() with chaseat_prefix_root()Yu Watanabe2023-04-181-0/+31
* chase: prefix with the root directory only when it is not "/"Yu Watanabe2023-04-181-8/+16
* chase: drop repeated call of empty_to_root()Yu Watanabe2023-04-181-13/+12
* chase: update outdated comment about result pathYu Watanabe2023-04-181-6/+20
* chase: make the result absolute when a symlink is absoluteYu Watanabe2023-04-181-0/+5
* chase: make chaseat() provides absolute path also when dir_fd points to the r...Yu Watanabe2023-04-181-2/+3
* chase: CHASE_MKDIR_0755 requires CHASE_NONEXISTENT and/or CHASE_PARENTYu Watanabe2023-04-141-0/+1
* chase: use FLAGS_SET() macroYu Watanabe2023-04-141-17/+17
* chase: drop redundant call of delete_trailing_chars()Yu Watanabe2023-04-111-8/+6
* chase: use dir_fd_is_root() to check if fd points to the root directoryYu Watanabe2023-04-101-3/+9
* chase: use stat_inode_same() at one more placeYu Watanabe2023-04-101-1/+1
* chase: drop one redundant call of fstat()Yu Watanabe2023-04-101-1/+1
* chase: make struct stat always sync with the opened fdYu Watanabe2023-04-101-25/+21
* chase: drop unnecessary conditions for bufferYu Watanabe2023-04-101-6/+4
* fd-util: introduce dir_fd_is_root_or_cwd()Yu Watanabe2023-04-041-4/+1
* chase: fix error handlingYu Watanabe2023-04-041-2/+2
* Merge pull request #27064 from DaanDeMeyer/chase-fixesDaan De Meyer2023-03-301-104/+25
|\
| * chase: Simplify chase_and_open() and chase_and_openat()Daan De Meyer2023-03-301-14/+12
| * chase: Fix error code checkDaan De Meyer2023-03-301-2/+2
| * chase: Fix formattingDaan De Meyer2023-03-301-90/+13
* | Merge pull request #27063 from yuwata/chase-gracefulDaan De Meyer2023-03-301-3/+17
|\ \ | |/ |/|
| * chase: add CHASE_AT_RESOLVE_IN_ROOT only when it is necessaryYu Watanabe2023-03-301-3/+3
| * chase: drop CHASE_AT_RESOLVE_IN_ROOT when AT_FDCWD or root dir fd is specifiedYu Watanabe2023-03-301-0/+14
* | chase: fix indentationYu Watanabe2023-03-301-3/+3
* | chase: fix commentYu Watanabe2023-03-301-1/+1
|/
* chase-symlinks: Add chase_and_open_parent() + at() variantDaan De Meyer2023-03-261-0/+29
* chase-symlinks: Allow optional path with CHASE_EXTRACT_FILENAMEDaan De Meyer2023-03-241-3/+0
* chase-symlinks: Rename chase_symlinks() to chase()Daan De Meyer2023-03-241-0/+1008