Skip to content

Commit

Permalink
find: use S_ISREG() rather than inlining it.
Browse files Browse the repository at this point in the history
  • Loading branch information
enh-google authored and landley committed May 10, 2024
1 parent 6800a95 commit 6983f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toys/posix/find.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ static int do_find(struct dirtree *new)
}
} else if (!strcmp(s, "size")) {
if (check) test = compare_numsign(new->st.st_size, -512, arg) &&
((new->st.st_mode & S_IFMT) == S_IFREG);
S_ISREG(new->st.st_mode);
} else if (!strcmp(s, "links")) {
if (check) test = compare_numsign(new->st.st_nlink, 0, arg);
} else if (!strcmp(s, "inum")) {
Expand Down

0 comments on commit 6983f74

Please sign in to comment.