aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/checkpath.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rc/checkpath.c b/src/rc/checkpath.c
index 5aea5973..6280fb6d 100644
--- a/src/rc/checkpath.c
+++ b/src/rc/checkpath.c
@@ -267,6 +267,9 @@ checkpath(int argc, char **argv)
if (optind >= argc)
usage(EXIT_FAILURE);
+ if (type == inode_unknown)
+ eerrorx("%s: -d -f or -p must be specified.", applet);
+
if (pw) {
uid = pw->pw_uid;
gid = pw->pw_gid;