Fix the code that selects the default binary type if the actual type can't
be determined. PR: bin/34698 Submitted by: (in part) Stefan Farfeleder <e0026813@stud3.tuwien.ac.at> MFC after: 1 weeks
This commit is contained in:
parent
ef4e4ffaf5
commit
f73a5022d8
@ -120,10 +120,10 @@ set_etype(void) {
|
||||
if (!strcmp(funcs->type, progt))
|
||||
break;
|
||||
|
||||
if (funcs == NULL) {
|
||||
warn("Execution type %s is not supported -- using FreeBSD a.out\n",
|
||||
progt);
|
||||
if (funcs->type == NULL) {
|
||||
funcs = &ex_types[0];
|
||||
warn("Execution type %s is not supported -- using %s\n",
|
||||
progt, funcs->type);
|
||||
}
|
||||
return funcs;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user