summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-08-26 03:08:33 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-08-26 03:08:33 +0200
commit9ec595d51a34d795903579644ca93c6b41786221 (patch)
tree9390c73d8ba9b5843299afc1a55bef912d198220
parentIn progress, .gitignore update (diff)
download42-minishell-9ec595d51a34d795903579644ca93c6b41786221.tar.gz
42-minishell-9ec595d51a34d795903579644ca93c6b41786221.tar.bz2
42-minishell-9ec595d51a34d795903579644ca93c6b41786221.tar.xz
42-minishell-9ec595d51a34d795903579644ca93c6b41786221.tar.zst
42-minishell-9ec595d51a34d795903579644ca93c6b41786221.zip
In progress
Diffstat (limited to '')
-rw-r--r--src/b_sqb_file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/b_sqb_file.c b/src/b_sqb_file.c
index c371d50..5b6576a 100644
--- a/src/b_sqb_file.c
+++ b/src/b_sqb_file.c
@@ -40,6 +40,10 @@ static t_bool
return (TRUE);
else if (id == FT_ID_SQB_S && st->st_size != 0)
return (TRUE);
+ else if (id == FT_ID_SQB_W && access(path, W_OK) == 0)
+ return (TRUE);
+ else if (id == FT_ID_SQB_X && access(path, X_OK) == 0)
+ return (TRUE);
return (FALSE);
}