blob: 89d35e0bac217707fbb2d688a7ddb4f68e2143fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- test/triggers/bogus-ioctl.c 2018-07-31 00:22:00.876656446 -0700
+++ test/triggers/bogus-ioctl-fix.c 2018-07-31 00:22:40.804948000 -0700
@@ -58,12 +58,12 @@
* pathname and properties) using various flags and seek offsets.
*/
fds[n++] = open(file, O_RDONLY);
- fds[n++] = open(file, O_WRONLY);
+ fds[n++] = open(file, O_WRONLY, 0600);
fds[n++] = open(file, O_RDWR);
fds[n++] = open(file, O_RDWR | O_APPEND | O_CREAT | O_DSYNC |
O_LARGEFILE | O_NOCTTY | O_NONBLOCK | O_NDELAY | O_RSYNC |
- O_SYNC | O_TRUNC);
+ O_SYNC | O_TRUNC, 0600);
fds[n++] = open(file, O_RDWR);
(void) lseek(fds[n - 1], 123, SEEK_SET);
|