diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-11-27 23:41:16 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-11-28 11:19:30 +0100 |
commit | b5e334aeb8ab6ec68d19bcdb9b6f9cb5bea40ba0 (patch) | |
tree | 9de7f2d2e329f6429927f9b77d10eac6b23e8efd /gnu/build | |
parent | 450f7740283ce160a7482d1c75e6e0ab17f2a6f0 (diff) |
hurd-boot: Explain why 'getxattr' cannot be used on GNU/Hurd.
This is a followup to f25e8f76fec03e5a31c221e7427d6962ece1aa67.
* gnu/build/hurd-boot.scm (translated?): Clarify why 'getxattr' cannot
be used on GNU/Hurd.
Diffstat (limited to 'gnu/build')
-rw-r--r-- | gnu/build/hurd-boot.scm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/build/hurd-boot.scm b/gnu/build/hurd-boot.scm index ad8ffccea6..99e5c75e11 100644 --- a/gnu/build/hurd-boot.scm +++ b/gnu/build/hurd-boot.scm @@ -127,6 +127,9 @@ set." (define (translated? file-name) "Return true if a translator is installed on FILE-NAME." + ;; On GNU/Hurd, 'getxattr' in glibc opens the file without O_NOTRANS, and + ;; then, for "gnu.translator", it calls 'file_get_translator', resulting in + ;; EOPNOTSUPP (conversely, 'showtrans' opens the file with O_NOTRANS). (if (string-contains %host-type "linux-gnu") (passive-translator-xattr? file-name) (passive-translator-installed? file-name))) |