Conan_Kudo / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame patches/openbsd_baseutils.local.patch

Lucio Andrés Illanes Albornoz b0e81e
diff -ru baseutils.orig/pax/Makefile baseutils/pax/Makefile
Lucio Andrés Illanes Albornoz b0e81e
--- baseutils.orig/pax/Makefile	2020-01-12 15:30:00.798505415 +0100
Lucio Andrés Illanes Albornoz b0e81e
+++ baseutils/pax/Makefile	2020-01-12 16:17:01.446757336 +0100
Lucio Andrés Illanes Albornoz b0e81e
@@ -19,11 +19,7 @@
Lucio Andrés Illanes Albornoz b0e81e
 
Lucio Andrés Illanes Albornoz b0e81e
 install:
Lucio Andrés Illanes Albornoz b0e81e
 	install -c -s -m 555 ${PROG} ${PREFIX}/bin/${PROG}
Lucio Andrés Illanes Albornoz b0e81e
-	install -c -s -m 555 ${PROG} ${PREFIX}/bin/tar
Lucio Andrés Illanes Albornoz b0e81e
-	install -c -s -m 555 ${PROG} ${PREFIX}/bin/cpio
Lucio Andrés Illanes Albornoz b0e81e
 	install -c -m 444 ${PROG}.1 ${MANDIR}/man1
Lucio Andrés Illanes Albornoz b0e81e
-	install -c -m 444 tar.1 ${MANDIR}/man1
Lucio Andrés Illanes Albornoz b0e81e
-	install -c -m 444 cpio.1 ${MANDIR}/man1
Lucio Andrés Illanes Albornoz b0e81e
 
Lucio Andrés Illanes Albornoz b0e81e
 clean:
Lucio Andrés Illanes Albornoz b0e81e
 	rm -f ${PROG} ${OBJS}
Lucio Andrés Illanes Albornoz b0e81e
diff --git a/pax/file_subs.c b/pax/file_subs.c
Lucio Andrés Illanes Albornoz b0e81e
index be8d065..41ffd57 100644
Lucio Andrés Illanes Albornoz b0e81e
--- a/pax/file_subs.c
Lucio Andrés Illanes Albornoz b0e81e
+++ b/pax/file_subs.c
Lucio Andrés Illanes Albornoz b0e81e
@@ -823,7 +823,7 @@ set_attr(const struct file_times *ft, int force_times, mode_t mode,
Lucio Andrés Illanes Albornoz b0e81e
 	 * so do *not* use O_NOFOLLOW.  The dev+ino check will
Lucio Andrés Illanes Albornoz b0e81e
 	 * protect us from evil.
Lucio Andrés Illanes Albornoz b0e81e
 	 */
Lucio Andrés Illanes Albornoz b0e81e
-	fd = open(ft->ft_name, O_RDONLY | O_DIRECTORY);
Lucio Andrés Illanes Albornoz b0e81e
+	fd = open(ft->ft_name, O_RDWR | O_DIRECTORY);
Lucio Andrés Illanes Albornoz b0e81e
 	if (fd == -1) {
Lucio Andrés Illanes Albornoz b0e81e
 		if (!in_sig)
Lucio Andrés Illanes Albornoz b0e81e
 			syswarn(1, errno, "Unable to restore mode and times"