Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Nov 2011 04:12:58 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r227443 - head/sys/kern
Message-ID:  <201111110412.pAB4Cwlr070416@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)	



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111110412.pAB4Cwlr070416>