summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2010-02-12 19:39:28 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2010-02-12 19:39:28 +0000
commit7d5996f7e7a3cee204a2be4b335887036051704e (patch)
tree8daf8948a77c2a5c2056efbab6727c90dbdd3e27 /sys
parentb59df871cd300552147e6cc6593a56c47104dda4 (diff)
tftp boot paths do not start with a /; ok miod@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/loongson/loongson/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c
index d8c2531715d..60a8494df18 100644
--- a/sys/arch/loongson/loongson/machdep.c
+++ b/sys/arch/loongson/loongson/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.13 2010/02/12 19:37:31 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.14 2010/02/12 19:39:27 otto Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -600,7 +600,7 @@ dobootopts(int argc)
continue;
/* device path */
- if (*arg == '/') {
+ if (*arg == '/' || strncmp(arg, "tftp://", 7) == 0) {
if (*pmon_bootp == '\0') {
strlcpy(pmon_bootp, arg, sizeof pmon_bootp);
parsepmonbp();