0028-pax-Ignore-EOPNOTSUPP-from-fchmodat.patch (796B)
1 From 0f49ae38698a163f7954d28bbaba473b6bf28239 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 6 Linux does not support changing the mode of symlinks. 7 --- 8 bin/pax/file_subs.c | 2 +- 9 1 file changed, 1 insertion(+), 1 deletion(-) 10 11 diff --git a/bin/pax/file_subs.c b/bin/pax/file_subs.c 12 index 8aa3d249923..2c0994feca6 100644 13 --- a/bin/pax/file_subs.c 14 +++ b/bin/pax/file_subs.c 15 @@ -795,7 +795,7 @@ void 16 set_pmode(char *fnm, mode_t mode) 17 { 18 mode &= ABITS; 19 - if (fchmodat(AT_FDCWD, fnm, mode, AT_SYMLINK_NOFOLLOW) == -1) 20 + if (fchmodat(AT_FDCWD, fnm, mode, AT_SYMLINK_NOFOLLOW) == -1 && errno != EOPNOTSUPP) 21 syswarn(1, errno, "Could not set permissions on %s", fnm); 22 } 23 24 -- 25 2.26.2 26