Resolve fflag with realpath().
MFC after: 2 weeks
This commit is contained in:
parent
caa18d0c6c
commit
cab9f71ffe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253833
@ -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 New Issue
Block a user