diff options
author | Mike Frysinger <vapier@gentoo.org> | 2016-11-26 19:00:02 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2016-11-26 19:00:02 -0500 |
commit | e98d5c97eef7533ec49ad46bbecba60ac38f430f (patch) | |
tree | c9fb0896f34aa0d1837a3fdc3ad656f7dbaad7ac /qxpak.c | |
parent | rewrite docs in markdown for github integration (diff) | |
download | portage-utils-e98d5c97eef7533ec49ad46bbecba60ac38f430f.tar.gz portage-utils-e98d5c97eef7533ec49ad46bbecba60ac38f430f.tar.bz2 portage-utils-e98d5c97eef7533ec49ad46bbecba60ac38f430f.zip |
qxpak: check -d argument
Diffstat (limited to 'qxpak.c')
-rw-r--r-- | qxpak.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } } |