summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2023-01-22 21:42:33 +0200
committerArnold D. Robbins <arnold@skeeve.com>2023-01-22 21:42:33 +0200
commit7672ce8c8f4819e4a24e26660f1cfe08655735b3 (patch)
treec15bda30001d090504779178051347f7677db571 /test
parentc81b15f4c7b4c5473305e5c3cd9ed6b233b8a9d3 (diff)
downloadgawk-7672ce8c8f4819e4a24e26660f1cfe08655735b3.tar.gz
Add security restriction on pma use.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/makepmafile.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index e6269d22..f630fe9d 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2023-01-22 Arnold D. Robbins <arnold@skeeve.com>
+
+ * makepmafile.c (main): Make the file mode 0600.
+ Update copyright year.
+
2022-11-25 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am: Use `grep -E' instead of egrep in some of the test
diff --git a/test/makepmafile.c b/test/makepmafile.c
index c6df717d..8f7d2257 100644
--- a/test/makepmafile.c
+++ b/test/makepmafile.c
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 2022,
+ * Copyright (C) 2022, 2023,
* the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
@@ -38,7 +38,7 @@ main(int argc, char **argv)
{
size_t four_meg = 1024 * 1024 * 4;
char c = 0;
- int fd = creat("test.pma", 0666);
+ int fd = creat("test.pma", 0600);
if (fd < 0) {
fprintf(stderr, "%s: could not create test.pma: %s\n",