svn commit: r227443 - head/sys/kern

Konstantin Belousov kib at FreeBSD.org
Fri Nov 11 04:12:58 UTC 2011


Author: kib
Date: Fri Nov 11 04:12:58 2011
New Revision: 227443
URL: http://svn.freebsd.org/changeset/base/227443

Log:
  Guard against the unlikely case of the alias path containing the '%' symbols.
  
  Reported by:	arundel
  MFC after:	1 week

Modified:
  head/sys/kern/kern_conf.c

Modified: head/sys/kern/kern_conf.c
==============================================================================
--- head/sys/kern/kern_conf.c	Fri Nov 11 04:10:36 2011	(r227442)
+++ head/sys/kern/kern_conf.c	Fri Nov 11 04:12:58 2011	(r227443)
@@ -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