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)  
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to