Skip to content

Commit

Permalink
pax-20210219: ignore error from lchmod, if it was not supported.
Browse files Browse the repository at this point in the history
This is seen on Linux and results in error building boost.
  • Loading branch information
jsonn committed Feb 19, 2021
1 parent 22e09e6 commit 065e67e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions archivers/pax/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.55 2020/01/18 23:29:56 rillig Exp $
# $NetBSD: Makefile,v 1.56 2021/02/19 13:23:08 joerg Exp $

DISTNAME= pax-20080110
PKGREVISION= 4
DISTNAME= pax-20210219
CATEGORIES= archivers
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
6 changes: 3 additions & 3 deletions archivers/pax/files/file_subs.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $NetBSD: file_subs.c,v 1.14 2008/10/26 12:48:48 joerg Exp $ */
/* $NetBSD: file_subs.c,v 1.15 2021/02/19 13:23:08 joerg Exp $ */

/*-
* Copyright (c) 1992 Keith Muller.
Expand Down Expand Up @@ -48,7 +48,7 @@
#if 0
static char sccsid[] = "@(#)file_subs.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: file_subs.c,v 1.14 2008/10/26 12:48:48 joerg Exp $");
__RCSID("$NetBSD: file_subs.c,v 1.15 2021/02/19 13:23:08 joerg Exp $");
#endif
#endif /* not lint */

Expand Down Expand Up @@ -883,7 +883,7 @@ void
set_pmode(char *fnm, mode_t mode)
{
mode &= A_BITS;
if (lchmod(fnm, mode)) {
if (lchmod(fnm, mode) && errno != EOPNOTSUPP) {
(void)fflush(listf);
syswarn(1, errno, "Cannot set permissions on %s", fnm);
}
Expand Down

0 comments on commit 065e67e

Please sign in to comment.