diff options
Diffstat (limited to 'src/helper/slbt_dump_machine.c')
-rw-r--r-- | src/helper/slbt_dump_machine.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |