diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-10-06 12:32:31 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-10-06 12:32:31 +0200 |
commit | 163c76c9305e6fee91dad8a3004f77020000ef96 (patch) | |
tree | 46fd59865a98ecfa42598ce73a0345139c5ba96d | |
parent | ba6bfc0d754f37e6868785fc9409a14f403ea3c0 (diff) |
activate: validate fdname when accepting it
-rw-r--r-- | src/activate/activate.c | 5 |
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; |