Lines 1-6
Link Here
|
1 |
#!/bin/sh |
1 |
#!/bin/sh |
2 |
# make sure NULL filename is handled correctly |
2 |
# make sure NULL filename is handled correctly |
3 |
|
3 |
|
|
|
4 |
# Note: this test is dependent on glibc internals |
5 |
# other libcs chose not to validate invalid parameters: |
6 |
# https://bugs.gentoo.org/549108#c28 |
7 |
# https://www.openwall.com/lists/musl/2019/06/25/1 |
8 |
# Run this test only on glibc systems. |
9 |
|
10 |
case $HOST in |
11 |
*-linux-gnu);; |
12 |
*) exit 77;; |
13 |
esac |
14 |
|
4 |
addwrite $PWD |
15 |
addwrite $PWD |
5 |
|
16 |
|
6 |
exec utimensat-0 -1:22 'f:O_WRONLY|O_CREAT:0666' NULL NULL 0 |
17 |
exec utimensat-0 -1:22 'f:O_WRONLY|O_CREAT:0666' NULL NULL 0 |
7 |
- |
|
|