summaryrefslogtreecommitdiff
path: root/login/tst-grantpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'login/tst-grantpt.c')
-rw-r--r--login/tst-grantpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login/tst-grantpt.c b/login/tst-grantpt.c
index 9b993daaca..5078dac26c 100644
--- a/login/tst-grantpt.c
+++ b/login/tst-grantpt.c
@@ -41,7 +41,7 @@ test_einval (void)
int fd, ret, err;
const char file[] = "./grantpt-einval";
- fd = open (file, O_RDWR | O_CREAT);
+ fd = open (file, O_RDWR | O_CREAT, 0600);
if (fd == -1)
{
printf ("open(\"%s\", O_RDWR) failed\nerrno %d (%s)\n",