[3/3] io: Fix a typo

Message ID 20230520115531.3911877-3-bugaevc@gmail.com
State Committed
Commit e1b02c5ed4099a53db8f356303fc0ef88db8a131
Headers
Series [1/3] hurd: Use __hurd_fail () instead of assigning errno |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit fail Patch series failed to apply
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 fail Patch failed to apply
linaro-tcwg-bot/tcwg_glibc_build--master-arm fail Patch failed to apply

Commit Message

Sergey Bugaev May 20, 2023, 11:55 a.m. UTC
  Fixes 85f7554cd97e7f03d8dc66278653045ef63a2221
"Add test case for O_TMPFILE handling in open, openat"

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
---
 io/tst-open-tmpfile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Comments

Samuel Thibault May 20, 2023, 4:15 p.m. UTC | #1
applied, thanks!

Sergey Bugaev via Libc-alpha, le sam. 20 mai 2023 14:55:31 +0300, a ecrit:
> Fixes 85f7554cd97e7f03d8dc66278653045ef63a2221
> "Add test case for O_TMPFILE handling in open, openat"
> 
> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
> ---
>  io/tst-open-tmpfile.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/io/tst-open-tmpfile.c b/io/tst-open-tmpfile.c
> index 666a3a30..9541a942 100644
> --- a/io/tst-open-tmpfile.c
> +++ b/io/tst-open-tmpfile.c
> @@ -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
>     not.  */
>  static bool
> -is_file_deteted (int fd)
> +is_file_deleted (int fd)
>  {
>    char *proc_fd_path = xasprintf ("/proc/self/fd/%d", fd);
>    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.  */
> -  if (!is_file_deteted (fd))
> +  if (!is_file_deleted (fd))
>      {
>        printf ("error: path in /proc is not marked as deleted\n");
>        exit (1);
> -- 
> 2.40.1
>
  

Patch

diff --git a/io/tst-open-tmpfile.c b/io/tst-open-tmpfile.c
index 666a3a30..9541a942 100644
--- a/io/tst-open-tmpfile.c
+++ b/io/tst-open-tmpfile.c
@@ -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
    not.  */
 static bool
-is_file_deteted (int fd)
+is_file_deleted (int fd)
 {
   char *proc_fd_path = xasprintf ("/proc/self/fd/%d", fd);
   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.  */
-  if (!is_file_deteted (fd))
+  if (!is_file_deleted (fd))
     {
       printf ("error: path in /proc is not marked as deleted\n");
       exit (1);