diff options
| author | jvoisin | 2023-08-21 17:46:03 +0200 |
|---|---|---|
| committer | jvoisin | 2023-08-21 17:48:29 +0200 |
| commit | cceaaa8161eb8b0b39854215417b39a9703b7aa5 (patch) | |
| tree | 8a9fa4b7179b2955fcbc5a9e699ffc250f8a023e /tests/test_umask.c | |
| parent | 5a387cee873365069ad40201fa4d1c514476aa55 (diff) | |
Harden umask
Diffstat (limited to 'tests/test_umask.c')
| -rw-r--r-- | tests/test_umask.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_umask.c b/tests/test_umask.c new file mode 100644 index 0000000..075782f --- /dev/null +++ b/tests/test_umask.c | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <sys/stat.h> | ||
| 4 | |||
| 5 | int main(int argc, char** argv) { | ||
| 6 | #if !defined(__clang__) | ||
| 7 | umask(0666); | ||
| 8 | #endif | ||
| 9 | return ret; | ||
| 10 | } | ||
