Browse Source

Merge remote-tracking branch 'github/master'

Waldemar Brodkorb 4 years ago
parent
commit
661ae943f9
2 changed files with 4 additions and 4 deletions
  1. 2 2
      test/misc/tst-nftw.c
  2. 2 2
      test/nptl/tst-mqueue4.c

+ 2 - 2
test/misc/tst-nftw.c

@@ -35,9 +35,9 @@ do_test(void)
 	perror("Creating path");
     if ((mkdir(subpath, 0700)) < 0)
 	perror("Creating subpath");
-    if ((open(filepath, O_CREAT)) < 0)
+    if ((open(filepath, O_CREAT, 0600)) < 0)
 	perror("Opening filepath");
-    if ((open(filesubpath, O_CREAT)) < 0)
+    if ((open(filesubpath, O_CREAT, 0600)) < 0)
 	perror("Opening filesubpath");
 
     if (nftw(path, process_one_entry, 100, (FTW_CHDIR|FTW_DEPTH|FTW_PHYS)) < 0)

+ 2 - 2
test/nptl/tst-mqueue4.c

@@ -171,14 +171,14 @@ do_test (void)
       result = 1;
     }
 
-  q2 = mq_open (name, O_RDONLY, 0600);
+  q2 = mq_open (name, O_RDONLY, 0600, &attr);
   if (q2 == (mqd_t) -1)
     {
       printf ("mq_open without O_CREAT failed with %m\n");
       result = 1;
     }
 
-  mqd_t q3 = mq_open (name, O_RDONLY, 0600);
+  mqd_t q3 = mq_open (name, O_RDONLY, 0600, &attr);
   if (q3 == (mqd_t) -1)
     {
       printf ("mq_open without O_CREAT failed with %m\n");