From c67e64bc2f3e482943ef699d1010499fa8ac642b Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 18 Sep 2016 23:59:03 -0400 Subject: driver: accommodate hosts that occasionally use '-portbld-' in their triple. --- src/helper/slbt_dump_machine.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/helper') diff --git a/src/helper/slbt_dump_machine.c b/src/helper/slbt_dump_machine.c index b062fb1..0704386 100644 --- a/src/helper/slbt_dump_machine.c +++ b/src/helper/slbt_dump_machine.c @@ -56,6 +56,7 @@ int slbt_dump_machine( int fd[2]; FILE * fmachine; char * newline; + char * mark; char check[2]; char program[PATH_MAX]; @@ -108,5 +109,10 @@ int slbt_dump_machine( close(fd[1]); } + /* support the portbld <--> unknown synonym */ + if (newline) + if ((mark = strstr(machine,"-portbld-"))) + memcpy(mark,"-unknown",8); + return newline ? 0 : -1; } -- cgit v1.2.3