svn commit: r229025 - stable/9/sys/kern

Konstantin Belousov kib at FreeBSD.org
Fri Dec 30 20:45:40 UTC 2011


Author: kib
Date: Fri Dec 30 20:45:40 2011
New Revision: 229025
URL: http://svn.freebsd.org/changeset/base/229025

Log:
  MFC r227443:
  Guard against the unlikely case of the alias path containing the '%' symbols.

Modified:
  stable/9/sys/kern/kern_conf.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/kern_conf.c
==============================================================================
--- stable/9/sys/kern/kern_conf.c	Fri Dec 30 20:41:24 2011	(r229024)
+++ stable/9/sys/kern/kern_conf.c	Fri Dec 30 20:45:40 2011	(r229025)
@@ -1016,7 +1016,7 @@ make_dev_physpath_alias(int flags, struc
 		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)	


More information about the svn-src-all mailing list