summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 33da8e4..a60bd30 100644
--- a/eval.c
+++ b/eval.c
@@ -273,6 +273,18 @@ bool eval_nohidden(const struct expr *expr, struct eval_state *state) {
}
/**
+ * -inum test.
+ */
+bool eval_inum(const struct expr *expr, struct eval_state *state) {
+ const struct stat *statbuf = fill_statbuf(state);
+ if (!statbuf) {
+ return false;
+ }
+
+ return do_cmp(expr, statbuf->st_ino);
+}
+
+/**
* -name test.
*/
bool eval_name(const struct expr *expr, struct eval_state *state) {