Bug 286576 - netstat illegal option exit code 64
Summary: netstat illegal option exit code 64
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-04 14:29 UTC by Andrey Fesenko
Modified: 2025-05-06 20:21 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Fesenko 2025-05-04 14:29:08 UTC
Previous releases include 14.2 error code = 1

# netstat --route --numeric --extend
netstat: illegal option -- -
...
# echo $?
1
# uname -a
FreeBSD free14.local 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64


In 15-Current exit code now 64, it's broke cloud-init (hardcode check exit code 1 https://github.com/canonical/cloud-init/issues/6206)

# netstat --route --numeric --extend
netstat: illegal option -- -
...
# echo $?
64
# uname -a
FreeBSD free15250410.local 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n276914-f676c13d4226: Thu May  1 05:11:20 UTC 2025  GENERIC amd64
Comment 1 Ed Maste freebsd_committer freebsd_triage 2025-05-06 20:21:24 UTC
des@ added a comment in the upstream repo ticket https://github.com/canonical/cloud-init/issues/6206#issuecomment-2853656953