diff options
author | Florian Weimer <fweimer@redhat.com> | 2025-09-01 15:05:16 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2025-09-01 15:12:28 +0200 |
commit | 54bd776f991f1a228a6bb6d76bf542edd915a0e3 (patch) | |
tree | babbe74424fc1827e421e423f7bc0fcc061d99b3 /stdlib | |
parent | 576976eacc6af024ec17bea7a2247b1a4e31f2dc (diff) | |
download | glibc-54bd776f991f1a228a6bb6d76bf542edd915a0e3.zip glibc-54bd776f991f1a228a6bb6d76bf542edd915a0e3.tar.gz glibc-54bd776f991f1a228a6bb6d76bf542edd915a0e3.tar.bz2 |
Tests: Create files with mode 0666, not 0777 (bug 33171)
Mode 0777 should be used for directories only because it results
in executable entries (after typical umasks are applied).
Reviewed-by: Arjun Shankar <arjun@redhat.com>
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/test-canon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/test-canon.c b/stdlib/test-canon.c index 51b0af1..51ac60d 100644 --- a/stdlib/test-canon.c +++ b/stdlib/test-canon.c @@ -165,7 +165,7 @@ do_test (int argc, char ** argv) int has_dir = mkdir ("doesExist", 0777) == 0; - int fd = has_dir ? creat ("doesExist/someFile", 0777) : -1; + int fd = has_dir ? creat ("doesExist/someFile", 0666) : -1; for (i = 0; i < (int) (sizeof (tests) / sizeof (tests[0])); ++i) { |