Date: Wed, 31 Jul 2013 07:06:58 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253833 - head/sbin/mdconfig Message-ID: <201307310706.r6V76w9R051233@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Wed Jul 31 07:06:58 2013 New Revision: 253833 URL: http://svnweb.freebsd.org/changeset/base/253833 Log: Resolve fflag with realpath(). MFC after: 2 weeks Modified: head/sbin/mdconfig/mdconfig.c Modified: head/sbin/mdconfig/mdconfig.c ============================================================================== --- head/sbin/mdconfig/mdconfig.c Wed Jul 31 06:23:10 2013 (r253832) +++ head/sbin/mdconfig/mdconfig.c Wed Jul 31 07:06:58 2013 (r253833) @@ -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"))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307310706.r6V76w9R051233>