Module Name: src
Committed By: christos
Date: Fri Apr 9 14:42:00 UTC 2021
Modified Files:
src/usr.bin/make/unit-tests: archive.mk
Log Message:
Don't use a shell pattern to copy files, copy them explicitly. When running
as non-root, [at]*.mk matches archive.mk which we already copied. This was
copied as 444 and trying to overwrite it gives EACCES.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/usr.bin/make/unit-tests/archive.mk
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/unit-tests/archive.mk
diff -u src/usr.bin/make/unit-tests/archive.mk:1.11 src/usr.bin/make/unit-tests/archive.mk:1.12
--- src/usr.bin/make/unit-tests/archive.mk:1.11 Sun Nov 15 09:07:53 2020
+++ src/usr.bin/make/unit-tests/archive.mk Fri Apr 9 10:42:00 2021
@@ -1,4 +1,4 @@
-# $NetBSD: archive.mk,v 1.11 2020/11/15 14:07:53 rillig Exp $
+# $NetBSD: archive.mk,v 1.12 2021/04/09 14:42:00 christos Exp $
#
# Very basic demonstration of handling archives, based on the description
# in PSD.doc/tutorial.ms.
@@ -8,11 +8,11 @@
# several other tests.
ARCHIVE= libprog.a
-FILES= archive.mk modmisc.mk varmisc.mk
+FILES= archive.mk archive-suffix.mk modmisc.mk ternary.mk varmisc.mk
all:
.if ${.PARSEDIR:tA} != ${.CURDIR:tA}
- @cd ${MAKEFILE:H} && cp ${FILES} [at]*.mk ${.CURDIR}
+ @cd ${MAKEFILE:H} && cp ${FILES} ${.CURDIR}
.endif
# The following targets create and remove files. The filesystem cache in
# dir.c would probably not handle this correctly, therefore each of the