summaryrefslogtreecommitdiff
path: root/src/activate
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-10-06 12:32:31 +0200
committerLennart Poettering <lennart@poettering.net>2015-10-06 12:32:31 +0200
commit163c76c9305e6fee91dad8a3004f77020000ef96 (patch)
tree46fd59865a98ecfa42598ce73a0345139c5ba96d /src/activate
parentba6bfc0d754f37e6868785fc9409a14f403ea3c0 (diff)
activate: validate fdname when accepting it
Diffstat (limited to 'src/activate')
-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;