summaryrefslogtreecommitdiffstats
path: root/usr.bin/truss/main.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-02-08 12:42:55 +0000
committerdes <des@FreeBSD.org>2002-02-08 12:42:55 +0000
commit3592b29f5e399a83c9eb6d700c92cac4083bf2ef (patch)
tree43f4cb3ae10a86dda97d3ebd7ae27c19ecdaf931 /usr.bin/truss/main.c
parentd9ac691aac55473b5bc9945504b2c0daf554deee (diff)
downloadFreeBSD-src-3592b29f5e399a83c9eb6d700c92cac4083bf2ef.zip
FreeBSD-src-3592b29f5e399a83c9eb6d700c92cac4083bf2ef.tar.gz
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
Diffstat (limited to 'usr.bin/truss/main.c')
-rw-r--r--usr.bin/truss/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/truss/main.c b/usr.bin/truss/main.c
index e6c4160..c04db3a 100644
--- a/usr.bin/truss/main.c
+++ b/usr.bin/truss/main.c
@@ -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;
}
OpenPOWER on IntegriCloud