[Bug libc/33171] Some tests create files using mode 0777

hjl.tools at gmail dot com sourceware-bugzilla@sourceware.org
Thu Jul 17 12:41:03 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=33171

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl.tools at gmail dot com
            Version|unspecified                 |2.42

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
The following tests call open with 0777:

io/tst-ftw-lnk.c:  if (open ("link2-tgt", O_RDWR|O_CREAT, 0777) < 0)
stdio-common/tst-setvbuf2.c:    td->fd = xopen (td->fname, O_WRONLY, 0777);
stdio-common/tst-setvbuf2.c:    td->fd = xopen (td->fname, O_RDONLY, 0777);
stdio-common/tst-setvbuf2.c:      fd = xopen (fname, O_WRONLY|O_CREAT|O_TRUNC,
0777);
support/shell-container.c:   new_stdin = open (argv[i + 1],
O_WRONLY|O_CREAT|O_TRUNC, 0777);
support/shell-container.c:   new_stdout = open (argv[i + 1],
O_WRONLY|O_CREAT|O_TRUNC, 0777);
support/shell-container.c:   new_stdout = open (argv[i + 1],
O_WRONLY|O_CREAT|O_APPEND, 0777);
support/shell-container.c:   new_stderr = open (argv[i + 1],
O_WRONLY|O_CREAT|O_TRUNC, 0777);

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list