Skip to content

Commit

Permalink
Restrict fstat(1) to OpenBSD
Browse files Browse the repository at this point in the history
Refs #234
  • Loading branch information
dridi committed Dec 13, 2017
1 parent aaa91b4 commit 1ddfdc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/hitch_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ hitch_hosts() {
return
fi

if cmd fstat
if cmd fstat && test "$(uname)" = OpenBSD
then
fstat -p "$(hitch_pid)" |
awk '$5 == "internet" && $7 == "tcp" && NF == 9 {
Expand All @@ -218,7 +218,7 @@ hitch_hosts() {
return
fi

fail "none of lsof, sockstat or fstat available"
fail "none of supported lsof, sockstat or fstat available"
}

#-
Expand Down

0 comments on commit 1ddfdc1

Please sign in to comment.