diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-01-13 11:04:51 +0000 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-01-13 11:04:51 +0000 |
commit | b0e81e07f1e76e97343419dad2a9301baa246f36 (patch) | |
tree | 0862cf2d1a1d64e52aa45ea027bd88e6dccec050 /patches/openbsd_baseutils.local.patch | |
parent | f41058dc5ac8041f552b73e97faa351483b7fafe (diff) | |
download | midipix_build-b0e81e07f1e76e97343419dad2a9301baa246f36.tar.bz2 midipix_build-b0e81e07f1e76e97343419dad2a9301baa246f36.tar.xz |
vars/build.vars:native_packages_etc: adds openbsd_baseutils (master) (via midipix.)
patches/openbsd_baseutils.local.patch: via midipix.
vars/openbsd_baseutils.vars: via midipix.
Diffstat (limited to 'patches/openbsd_baseutils.local.patch')
-rw-r--r-- | patches/openbsd_baseutils.local.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/patches/openbsd_baseutils.local.patch b/patches/openbsd_baseutils.local.patch new file mode 100644 index 00000000..f22fa4a1 --- /dev/null +++ b/patches/openbsd_baseutils.local.patch @@ -0,0 +1,28 @@ +diff -ru baseutils.orig/pax/Makefile baseutils/pax/Makefile +--- baseutils.orig/pax/Makefile 2020-01-12 15:30:00.798505415 +0100 ++++ baseutils/pax/Makefile 2020-01-12 16:17:01.446757336 +0100 +@@ -19,11 +19,7 @@ + + install: + install -c -s -m 555 ${PROG} ${PREFIX}/bin/${PROG} +- install -c -s -m 555 ${PROG} ${PREFIX}/bin/tar +- install -c -s -m 555 ${PROG} ${PREFIX}/bin/cpio + install -c -m 444 ${PROG}.1 ${MANDIR}/man1 +- install -c -m 444 tar.1 ${MANDIR}/man1 +- install -c -m 444 cpio.1 ${MANDIR}/man1 + + clean: + rm -f ${PROG} ${OBJS} +diff --git a/pax/file_subs.c b/pax/file_subs.c +index be8d065..41ffd57 100644 +--- a/pax/file_subs.c ++++ b/pax/file_subs.c +@@ -823,7 +823,7 @@ set_attr(const struct file_times *ft, int force_times, mode_t mode, + * so do *not* use O_NOFOLLOW. The dev+ino check will + * protect us from evil. + */ +- fd = open(ft->ft_name, O_RDONLY | O_DIRECTORY); ++ fd = open(ft->ft_name, O_RDWR | O_DIRECTORY); + if (fd == -1) { + if (!in_sig) + syswarn(1, errno, "Unable to restore mode and times" |