Module Name:    src
Committed By:   christos
Date:           Sun Mar  8 15:07:05 UTC 2015

Modified Files:
        src/sys/kern: makesyscalls.sh

Log Message:
Don't blindly tack ./ in front of the config file; breaks when we pass a full
path one.


To generate a diff of this commit:
cvs rdiff -u -r1.148 -r1.149 src/sys/kern/makesyscalls.sh

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

Modified files:

Index: src/sys/kern/makesyscalls.sh
diff -u src/sys/kern/makesyscalls.sh:1.148 src/sys/kern/makesyscalls.sh:1.149
--- src/sys/kern/makesyscalls.sh:1.148	Sat Mar  7 16:49:56 2015
+++ src/sys/kern/makesyscalls.sh	Sun Mar  8 11:07:05 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: makesyscalls.sh,v 1.148 2015/03/07 21:49:56 christos Exp $
+#	$NetBSD: makesyscalls.sh,v 1.149 2015/03/08 15:07:05 christos Exp $
 #
 # Copyright (c) 1994, 1996, 2000 Christopher G. Demetriou
 # All rights reserved.
@@ -69,7 +69,11 @@ rumpsysent="rumpsysent.tmp"
 rumpnoflags="\n\t\t.sy_flags = SYCALL_NOSYS,"
 rumpnosys="(sy_call_t *)rumpns_enosys"
 rumpnomodule="(sy_call_t *)rumpns_sys_nomodule"
-. ./$1
+
+case $1 in
+/*)	. $1;;
+*)	. ./$1;;
+esac
 
 # tmp files:
 sysdcl="sysent.dcl"

Reply via email to