aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qxpak.c')
-rw-r--r--qxpak.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/qxpak.c b/qxpak.c
index baceda9..aa1a281 100644
--- a/qxpak.c
+++ b/qxpak.c
@@ -393,6 +393,8 @@ int qxpak_main(int argc, char **argv)
if (dir_fd != AT_FDCWD)
err("Only use -d once");
dir_fd = open(optarg, O_RDONLY|O_CLOEXEC|O_PATH);
+ if (dir_fd < 0)
+ errp("Could not open directory %s", optarg);
break;
}
}