summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-26 03:26:07 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-26 03:26:07 +0200
commit8b3650de36265a93f2ad077e23c4b58b11a38cf4 (patch)
tree38a0f43e44e8820425defef184e1566061c2276a /src
parentIn progress (diff)
download42-minishell-8b3650de36265a93f2ad077e23c4b58b11a38cf4.tar.gz
42-minishell-8b3650de36265a93f2ad077e23c4b58b11a38cf4.tar.bz2
42-minishell-8b3650de36265a93f2ad077e23c4b58b11a38cf4.tar.xz
42-minishell-8b3650de36265a93f2ad077e23c4b58b11a38cf4.tar.zst
42-minishell-8b3650de36265a93f2ad077e23c4b58b11a38cf4.zip
File tests, all good
Diffstat (limited to 'src')
-rw-r--r--src/b_sqb_file.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/b_sqb_file.c b/src/b_sqb_file.c
index 5b6576a..02ad601 100644
--- a/src/b_sqb_file.c
+++ b/src/b_sqb_file.c
@@ -44,6 +44,8 @@ static t_bool
return (TRUE);
else if (id == FT_ID_SQB_X && access(path, X_OK) == 0)
return (TRUE);
+ else if (id == FT_ID_SQB_S_MAJ && S_ISSOCK(st->st_mode) == 0)
+ return (TRUE);
return (FALSE);
}