summaryrefslogtreecommitdiff
path: root/src/activate/activate.c
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-10-06 14:59:24 +0200
committerDaniel Mack <github@zonque.org>2015-10-06 14:59:24 +0200
commit13af9152bc3c018849e1834f5ff93f2a8ed03afb (patch)
tree628d9ae3d2e8542c44c00695fd3aea5f1028f04f /src/activate/activate.c
parent20d2f7851ac44bd6845d060a952461f5a10e9c87 (diff)
parentd046fb936658e7239c8e2635ecb7fb32748ef535 (diff)
Merge pull request #1469 from poettering/even-more-fixed
Even more fixes
Diffstat (limited to 'src/activate/activate.c')
-rw-r--r--src/activate/activate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/activate/activate.c b/src/activate/activate.c
index 6a8432314e..4ece1367c1 100644
--- a/src/activate/activate.c
+++ b/src/activate/activate.c
@@ -361,6 +361,11 @@ static int parse_argv(int argc, char *argv[]) {
break;
case ARG_FDNAME:
+ if (!fdname_is_valid(optarg)) {
+ log_error("File descriptor name %s is not valid, refusing.", optarg);
+ return -EINVAL;
+ }
+
arg_fdname = optarg;
break;