Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make/unit-tests Don't use a shell pattern to copy fi...



details:   https://anonhg.NetBSD.org/src/rev/7c1cd75ced14
branches:  trunk
changeset: 982305:7c1cd75ced14
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 09 14:42:00 2021 +0000

description:
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.

diffstat:

 usr.bin/make/unit-tests/archive.mk |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 8a6ae3b13b8a -r 7c1cd75ced14 usr.bin/make/unit-tests/archive.mk
--- a/usr.bin/make/unit-tests/archive.mk        Thu Apr 08 22:18:26 2021 +0000
+++ b/usr.bin/make/unit-tests/archive.mk        Fri Apr 09 14:42:00 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index