Remove useless check

* src/exclist.c (info_attach_exclist): Don't check whether dir
is NULL. It can't be.
This commit is contained in:
Sergey Poznyakoff
2024-10-25 10:24:32 +03:00
parent e59d09db7d
commit 8767b1c84a
+1 -1
View File
@@ -80,7 +80,7 @@ info_attach_exclist (struct tar_stat_info *dir)
return;
for (file = excfile_head; file; file = file->next)
{
if (faccessat (dir ? dir->fd : chdir_fd, file->name, F_OK, 0) == 0)
if (faccessat (dir->fd, file->name, F_OK, 0) == 0)
{
FILE *fp;
struct exclude *ex = NULL;