Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mxqd: Argument to --log-dir has to be a absolute path
  • Loading branch information
mariux committed Nov 6, 2015
1 parent 38a9f3e commit af4053d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mxqd.c
Expand Up @@ -384,6 +384,10 @@ int server_init(struct mxq_server *server, int argc, char *argv[])
case 4:
arg_nolog = 0;
arg_logdir = optctl.optarg;
if (arg_logdir && *arg_logdir != '/') {
mx_log_err("Invalid argument supplied for option --log-dir '%s': Path has to be absolute", optctl.optarg);
return -EX_USAGE;
}
break;

case 5:
Expand Down

0 comments on commit af4053d

Please sign in to comment.