Guard against the unlikely case of the alias path containing the '%' symbols.

Reported by:	arundel
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2011-11-11 04:12:58 +00:00
parent 63b7742fbb
commit f403cfb19c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227443

View File

@ -1016,7 +1016,7 @@ make_dev_physpath_alias(int flags, struct cdev **cdev, struct cdev *pdev,
old_alias = NULL;
ret = 0;
} else {
ret = make_dev_alias_p(flags, cdev, pdev, devfspath);
ret = make_dev_alias_p(flags, cdev, pdev, "%s", devfspath);
}
out:
if (old_alias != NULL)