Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/usr.sbin/arp.c
          +++ new/usr/src/cmd/cmd-inet/usr.sbin/arp.c
↓ open down ↓ 118 lines elided ↑ open up ↑
 119  119                   * is to let netstat, which prints it as part of
 120  120                   * the MIB statistics, do it.
 121  121                   */
 122  122                  char netstat_path[MAXPATHLEN];
 123  123                  const char *zroot = zone_get_nroot();
 124  124                  (void) snprintf(netstat_path, sizeof (netstat_path), "%s%s", zroot != NULL ?
 125  125                      zroot : "", "/usr/bin/netstat");
 126  126                  (void) execl(netstat_path, "netstat",
 127  127                      (n_flag ? "-np" : "-p"),
 128  128                      "-f", "inet", (char *)0);
 129      -                (void) fprintf(stderr, "failed to exec netstat: %s\n",
 130      -                    strerror(errno));
      129 +                (void) fprintf(stderr, "failed to exec %s: %s\n",
      130 +                    netstat_path, strerror(errno));
 131  131                  exit(1);
 132  132  
 133  133          } else if (s_flag && (argsleft >= 2)) {
 134  134                  if (set(argsleft, &argv[optind]) != 0)
 135  135                          exit(1);
 136  136  
 137  137          } else if (d_flag && (argsleft == 1)) {
 138  138                  delete(argv[optind]);
 139  139  
 140  140          } else if (f_flag && (argsleft == 1)) {
↓ open down ↓ 278 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX