blob: e41f56953164bc943ca4b0a4c6c322c908690a4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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"
--- baseutils/pax/Makefile.orig 2020-01-28 21:00:25.410023800 +0100
+++ baseutils/pax/Makefile 2020-01-28 21:01:19.691416800 +0100
@@ -18,12 +18,7 @@
${CC} ${LDFLAGS} -o ${PROG} ${OBJS} ${LIBS}
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}
|