From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qudcg-0008RK-OR for garchives@archives.gentoo.org; Sat, 20 Aug 2011 04:57:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 87A06E0603; Sat, 20 Aug 2011 04:57:23 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4C85FE05F1 for ; Sat, 20 Aug 2011 04:57:23 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B49A41B4045 for ; Sat, 20 Aug 2011 04:57:22 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id CC7A180040 for ; Sat, 20 Aug 2011 04:57:21 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <11310f89de97e5adc31462647fe360a9bf970c26.vapier@gentoo> Subject: [gentoo-commits] proj/net-tools:master commit in: / X-VCS-Repository: proj/net-tools X-VCS-Files: netstat.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 11310f89de97e5adc31462647fe360a9bf970c26 Date: Sat, 20 Aug 2011 04:57:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: ff9a0c11b5470690ebd53b26ad7dbcfb commit: 11310f89de97e5adc31462647fe360a9bf970c26 Author: Bernd Eckenfels lina inka de> AuthorDate: Wed Apr 20 01:35:22 2011 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed Apr 20 01:35:22 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/net-tools.git= ;a=3Dcommit;h=3D11310f89 patch from Bert Wesarg to separate basename of -p only if it is absulote path (in order to make argv[0]=3D"sshd pty/0" display as sshd, and not as= /0. --- netstat.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netstat.c b/netstat.c index b625d19..7b45fc8 100644 --- a/netstat.c +++ b/netstat.c @@ -6,7 +6,7 @@ * NET-3 Networking Distribution for the LINUX operating * system. * - * Version: $Id: netstat.c,v 1.72 2011-04-09 13:57:28 vapier Exp $ + * Version: $Id: netstat.c,v 1.73 2011-04-20 01:35:22 ecki Exp $ * * Authors: Fred Baumgarten, * Fred N. van Kempen, @@ -420,7 +420,7 @@ static void prg_cache_load(void) continue; if (cmdllen < sizeof(cmdlbuf) - 1)=20 cmdlbuf[cmdllen]=3D'\0'; - if ((cmdlp =3D strrchr(cmdlbuf, '/')))=20 + if (cmdlbuf[0] =3D=3D '/' && (cmdlp =3D strrchr(cmdlbuf, '/')))=20 cmdlp++; else=20 cmdlp =3D cmdlbuf; From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Qudcy-0008Tu-VD for garchives@archives.gentoo.org; Sat, 20 Aug 2011 04:57:49 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 30515E0638; Sat, 20 Aug 2011 04:57:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id EC0BFE0638 for ; Sat, 20 Aug 2011 04:57:36 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 74E741B403A for ; Sat, 20 Aug 2011 04:57:36 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id BC45F80040 for ; Sat, 20 Aug 2011 04:57:35 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <11310f89de97e5adc31462647fe360a9bf970c26.vapier@gentoo> Subject: [gentoo-commits] proj/net-tools:gentoo commit in: / X-VCS-Repository: proj/net-tools X-VCS-Files: netstat.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 11310f89de97e5adc31462647fe360a9bf970c26 Date: Sat, 20 Aug 2011 04:57:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: e6a1f3f744eb64d0e06ba5e23406f755 Message-ID: <20110820045735.bXVNSymzUvG5sUZoKCLPRSqy9JUIEyEn11VV35qC7qQ@z> commit: 11310f89de97e5adc31462647fe360a9bf970c26 Author: Bernd Eckenfels lina inka de> AuthorDate: Wed Apr 20 01:35:22 2011 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Wed Apr 20 01:35:22 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/net-tools.git= ;a=3Dcommit;h=3D11310f89 patch from Bert Wesarg to separate basename of -p only if it is absulote path (in order to make argv[0]=3D"sshd pty/0" display as sshd, and not as= /0. --- netstat.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netstat.c b/netstat.c index b625d19..7b45fc8 100644 --- a/netstat.c +++ b/netstat.c @@ -6,7 +6,7 @@ * NET-3 Networking Distribution for the LINUX operating * system. * - * Version: $Id: netstat.c,v 1.72 2011-04-09 13:57:28 vapier Exp $ + * Version: $Id: netstat.c,v 1.73 2011-04-20 01:35:22 ecki Exp $ * * Authors: Fred Baumgarten, * Fred N. van Kempen, @@ -420,7 +420,7 @@ static void prg_cache_load(void) continue; if (cmdllen < sizeof(cmdlbuf) - 1)=20 cmdlbuf[cmdllen]=3D'\0'; - if ((cmdlp =3D strrchr(cmdlbuf, '/')))=20 + if (cmdlbuf[0] =3D=3D '/' && (cmdlp =3D strrchr(cmdlbuf, '/')))=20 cmdlp++; else=20 cmdlp =3D cmdlbuf;