Skip to content

Commit

Permalink
revokefs: Use glnx_opendirat_with_errno()
Browse files Browse the repository at this point in the history
No change in behavior.
  • Loading branch information
doraskayo authored and smcv committed Sep 22, 2023
1 parent 0eeaaca commit f66b1ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions revokefs/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ callback_readdir (const char *path, void *buf, fuse_fill_dir_t filler,
}
else
{
dfd = openat (basefd, path, O_RDONLY | O_NONBLOCK | O_DIRECTORY | O_CLOEXEC | O_NOCTTY);
dfd = glnx_opendirat_with_errno (basefd, path, TRUE);
if (dfd == -1)
return -errno;
}
Expand Down Expand Up @@ -562,7 +562,7 @@ main (int argc, char *argv[])
exit (EXIT_FAILURE);
}

basefd = openat (AT_FDCWD, base_path, O_RDONLY | O_NONBLOCK | O_DIRECTORY | O_CLOEXEC | O_NOCTTY);
basefd = glnx_opendirat_with_errno (AT_FDCWD, base_path, TRUE);
if (basefd == -1)
{
perror ("opening basepath: ");
Expand Down

0 comments on commit f66b1ec

Please sign in to comment.