Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Don't blindly tack ./ in front of the config file; ...



details:   https://anonhg.NetBSD.org/src/rev/2ba7935be4f0
branches:  trunk
changeset: 336637:2ba7935be4f0
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 08 15:07:05 2015 +0000

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

diffstat:

 sys/kern/makesyscalls.sh |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r 269d700b217a -r 2ba7935be4f0 sys/kern/makesyscalls.sh
--- a/sys/kern/makesyscalls.sh  Sun Mar 08 14:56:06 2015 +0000
+++ b/sys/kern/makesyscalls.sh  Sun Mar 08 15:07:05 2015 +0000
@@ -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 @@
 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"



Home | Main Index | Thread Index | Old Index