Resolve fflag with realpath().

MFC after:	2 weeks
This commit is contained in:
Xin LI 2013-07-31 07:06:58 +00:00
parent caa18d0c6c
commit cab9f71ffe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253833

View File

@ -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"))