diff options
author | kib <kib@FreeBSD.org> | 2011-11-11 04:12:58 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2011-11-11 04:12:58 +0000 |
commit | f3c70bd299b21cd9e59bffc84f045510aaca92a9 (patch) | |
tree | 4d31774adaf9cea41a20c70bb229a7e3f8726c23 /sys/kern | |
parent | 1084039b85788b5f20644146ce2767e397020a75 (diff) | |
download | FreeBSD-src-f3c70bd299b21cd9e59bffc84f045510aaca92a9.zip FreeBSD-src-f3c70bd299b21cd9e59bffc84f045510aaca92a9.tar.gz |
Guard against the unlikely case of the alias path containing the '%' symbols.
Reported by: arundel
MFC after: 1 week
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index 8da16d2..1f17059 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -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) |