Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gekkofs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • hpc
  • gekkofs
  • Merge requests
  • !149

Resolve "`cat` and other system commands use (new)fstatat with AT_EMPTY_PATH flag"

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Ramon Nou requested to merge rnou/228-cat-and-other-system-commands-use-new-fstatat-with-at_empty_path-flag into master Jun 27, 2022
  • Overview 3
  • Commits 3
  • Pipelines 7
  • Changes 4

Before this MR: The flag is ignored in relativize_fd_path, but the man page shows that dirfd can be a file if the EMPTY_PATH is on. It seems that newer (kernel/coreutils/etc) uses that instead of doing a normal stat to the file.

Therefore, we need to handle empty path during relativize paths so that the file descriptor is used instead.

Closes #228 (closed)

Edited Jun 28, 2022 by Marc Vef
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: rnou/228-cat-and-other-system-commands-use-new-fstatat-with-at_empty_path-flag