mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
io: Fix a typo
Fixes 85f7554cd9
"Add test case for O_TMPFILE handling in open, openat"
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230520115531.3911877-3-bugaevc@gmail.com>
This commit is contained in:
parent
70d0dda0c1
commit
e1b02c5ed4
1 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ wrap_openat64 (const char *path, int flags, mode_t mode)
|
||||||
/* Return true if FD is flagged as deleted in /proc/self/fd, false if
|
/* Return true if FD is flagged as deleted in /proc/self/fd, false if
|
||||||
not. */
|
not. */
|
||||||
static bool
|
static bool
|
||||||
is_file_deteted (int fd)
|
is_file_deleted (int fd)
|
||||||
{
|
{
|
||||||
char *proc_fd_path = xasprintf ("/proc/self/fd/%d", fd);
|
char *proc_fd_path = xasprintf ("/proc/self/fd/%d", fd);
|
||||||
char file_path[4096];
|
char file_path[4096];
|
||||||
|
@ -172,7 +172,7 @@ check_wrapper_flags_mode (const char *op, wrapper_func wrapper,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check that the file is marked as deleted in /proc. */
|
/* Check that the file is marked as deleted in /proc. */
|
||||||
if (!is_file_deteted (fd))
|
if (!is_file_deleted (fd))
|
||||||
{
|
{
|
||||||
printf ("error: path in /proc is not marked as deleted\n");
|
printf ("error: path in /proc is not marked as deleted\n");
|
||||||
exit (1);
|
exit (1);
|
||||||
|
|
Loading…
Add table
Reference in a new issue