logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0027-pax-Ignore-EOPNOTSUPP-from-fchmodat.patch (796B)


  1. From 38b0c680777d5eb9cc69cd8fbc38fe3dc5a0927a Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Fri, 10 Jan 2020 21:40:03 -0800
  4. Subject: [PATCH] pax: Ignore EOPNOTSUPP from fchmodat
  5. Linux does not support changing the mode of symlinks.
  6. ---
  7. bin/pax/file_subs.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/bin/pax/file_subs.c b/bin/pax/file_subs.c
  10. index ae0caf29f6c..429705976dc 100644
  11. --- a/bin/pax/file_subs.c
  12. +++ b/bin/pax/file_subs.c
  13. @@ -800,7 +800,7 @@ void
  14. set_pmode(char *fnm, mode_t mode)
  15. {
  16. mode &= ABITS;
  17. - if (fchmodat(AT_FDCWD, fnm, mode, AT_SYMLINK_NOFOLLOW) == -1)
  18. + if (fchmodat(AT_FDCWD, fnm, mode, AT_SYMLINK_NOFOLLOW) == -1 && errno != EOPNOTSUPP)
  19. syswarn(1, errno, "Could not set permissions on %s", fnm);
  20. }
  21. --
  22. 2.49.0