summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1997-01-08 13:37:50 +0000
committerniklas <niklas@openbsd.org>1997-01-08 13:37:50 +0000
commit31047ab62af56055dbb7d01856a1fb6c4d70e215 (patch)
tree7a7c4bc0e05a7f894c2b848189fb977a34ce467e
parent"Too much paranoia" + fake domain in anonftp password as some stupid sites (diff)
downloadwireguard-openbsd-31047ab62af56055dbb7d01856a1fb6c4d70e215.tar.xz
wireguard-openbsd-31047ab62af56055dbb7d01856a1fb6c4d70e215.zip
If config-file is not starting with /, consider it to be a
relative path.
-rw-r--r--sys/kern/makesyscalls.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/makesyscalls.sh b/sys/kern/makesyscalls.sh
index 596c878abba..cc0bdf7553b 100644
--- a/sys/kern/makesyscalls.sh
+++ b/sys/kern/makesyscalls.sh
@@ -42,7 +42,12 @@ case $# in
esac
# source the config file.
-. $1
+case $1 in
+ /*) . $1
+ ;;
+ *) . ./$1
+ ;;
+esac
# the config file sets the following variables:
# sysnames the syscall names file