Project

General

Profile

Bug #6275

arp should warn when it can't exec netstat

Added by Robert Mustacchi over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
2015-09-30
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

Description

The arp command execs netstat when using arp -a. However, if it can't execute netstat, then it just silently fails and doesn't print anything, just exiting with 1. It makes it very hard for most folks to realize that's different from there being nothing in the arp tables. We should instead print an explicit error to stderr.

History

#1

Updated by Electric Monk over 4 years ago

  • Status changed from New to Closed

git commit 2545d10d08f1bf15162c2c0998fcae535d08c0d9

commit  2545d10d08f1bf15162c2c0998fcae535d08c0d9
Author: Robert Mustacchi <rm@joyent.com>
Date:   2015-10-06T15:49:05.000Z

    6275 arp should warn when it can't exec netstat
    Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
    Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
    Reviewed by: Jason King <jason.brian.king@gmail.com>
    Approved by: Richard Lowe <richlowe@richlowe.net>

Also available in: Atom PDF