mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Resolve fflag with realpath().
MFC after: 2 weeks
This commit is contained in:
parent
caa18d0c6c
commit
cab9f71ffe
1 changed files with 3 additions and 1 deletions
|
|
@ -161,7 +161,9 @@ main(int argc, char **argv)
|
|||
case 'f':
|
||||
if (fflag != NULL)
|
||||
errx(1, "-f can be passed only once");
|
||||
fflag = optarg;
|
||||
fflag = realpath(optarg, NULL);
|
||||
if (fflag == NULL)
|
||||
err(1, "realpath");
|
||||
break;
|
||||
case 'o':
|
||||
if (!strcmp(optarg, "async"))
|
||||
|
|
|
|||
Loading…
Reference in a new issue