aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/file
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2018-08-16 22:04:00 +0000
committerAlan Somers <asomers@FreeBSD.org>2018-08-16 22:04:00 +0000
commit88fa3a7649942235b2bf58af5601b3f58118f459 (patch)
treeedbf6315fd8b2518e4776fedbb096fdf5867040f /tests/sys/file
parent76f2606181eabc8ab20aa7297bbddc6e78bb549d (diff)
Notes
Diffstat (limited to 'tests/sys/file')
-rw-r--r--tests/sys/file/dup_test.c2
-rw-r--r--tests/sys/file/flock_helper.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/tests/sys/file/dup_test.c b/tests/sys/file/dup_test.c
index 825f796ef273..817381889625 100644
--- a/tests/sys/file/dup_test.c
+++ b/tests/sys/file/dup_test.c
@@ -50,7 +50,6 @@
* open files limit work.
*/
-#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
@@ -69,7 +68,6 @@ getafile(void)
int fd;
char temp[] = "/tmp/dup2XXXXXXXXX";
- umask(0077);
if ((fd = mkstemp(temp)) < 0)
err(1, "mkstemp");
remove(temp);
diff --git a/tests/sys/file/flock_helper.c b/tests/sys/file/flock_helper.c
index 4f2ffcea8b23..0fca15e48ef2 100644
--- a/tests/sys/file/flock_helper.c
+++ b/tests/sys/file/flock_helper.c
@@ -92,7 +92,6 @@ make_file(const char *pathname, off_t sz)
filename = malloc(len);
strcpy(filename, pathname);
strcat(filename, template);
- umask(0077);
fd = mkstemp(filename);
if (fd < 0)
err(1, "mkstemp");