Module Name:    src
Committed By:   msaitoh
Date:           Sun Jun  9 16:14:49 UTC 2013

Modified Files:
        src/etc [netbsd-5-2]: MAKEDEV.tmpl

Log Message:
Pull up following revision(s) (requested by apb in ticket #1848):
        etc/MAKEDEV.tmpl: revision 1.161
The console major number is not always 0; when creating a temporary
console while populating a memory disk, use %CONSOLE_CMAJOR% instead
of 0, and let MAKEDEV.awk substitute the appropriate machine-dependent
major number.
This fixes a bug that I introduced in revision 1.82 dated 2007-03-11.


To generate a diff of this commit:
cvs rdiff -u -r1.113.2.8 -r1.113.2.8.2.1 src/etc/MAKEDEV.tmpl

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/etc/MAKEDEV.tmpl
diff -u src/etc/MAKEDEV.tmpl:1.113.2.8 src/etc/MAKEDEV.tmpl:1.113.2.8.2.1
--- src/etc/MAKEDEV.tmpl:1.113.2.8	Fri May 20 19:21:32 2011
+++ src/etc/MAKEDEV.tmpl	Sun Jun  9 16:14:49 2013
@@ -1,5 +1,5 @@
 #!/bin/sh -
-#	$NetBSD: MAKEDEV.tmpl,v 1.113.2.8 2011/05/20 19:21:32 bouyer Exp $
+#	$NetBSD: MAKEDEV.tmpl,v 1.113.2.8.2.1 2013/06/09 16:14:49 msaitoh Exp $
 #
 # Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -2129,7 +2129,7 @@ create_mfs_dev()
 
 	if $do_redirect; then
 		# Redirect stdout and stderr to console
-		mknod -m 600 -g 0 -u 0 temp_console c 0 0
+		mknod -m 600 -g 0 -u 0 temp_console c %CONSOLE_CMAJOR% 0
 		exec >temp_console 2>&1
 		rm temp_console
 	fi

Reply via email to