svn commit: r297528 - head/sbin/devd

Warner Losh imp at FreeBSD.org
Sun Apr 3 20:29:15 UTC 2016


Author: imp
Date: Sun Apr  3 20:29:14 2016
New Revision: 297528
URL: https://svnweb.freebsd.org/changeset/base/297528

Log:
  Make $_ match the docs.

Modified:
  head/sbin/devd/devd.cc

Modified: head/sbin/devd/devd.cc
==============================================================================
--- head/sbin/devd/devd.cc	Sun Apr  3 16:38:15 2016	(r297527)
+++ head/sbin/devd/devd.cc	Sun Apr  3 20:29:14 2016	(r297528)
@@ -796,7 +796,7 @@ process_event(char *buffer)
 	// $* is the entire line
 	cfg.set_variable("*", buffer - 1);
 	// $_ is the entire line without the initial character
-	cfg.set_variable("_", buffer - 1);
+	cfg.set_variable("_", buffer);
 	// No match doesn't have a device, and the format is a little
 	// different, so handle it separately.
 	switch (type) {


More information about the svn-src-all mailing list