public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/net-tools:master commit in: /
Date: Sat, 20 Aug 2011 04:57:21 +0000 (UTC)	[thread overview]
Message-ID: <11310f89de97e5adc31462647fe360a9bf970c26.vapier@gentoo> (raw)

commit:     11310f89de97e5adc31462647fe360a9bf970c26
Author:     Bernd Eckenfels <net-tools <AT> lina <DOT> inka <DOT> de>
AuthorDate: Wed Apr 20 01:35:22 2011 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Wed Apr 20 01:35:22 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/net-tools.git;a=commit;h=11310f89

patch from Bert Wesarg to separate basename of -p only if it is absulote
path (in order to make argv[0]="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, <dc6iq@insu1.etec.uni-karlsruhe.de>
  *              Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
@@ -420,7 +420,7 @@ static void prg_cache_load(void)
 		    continue;
 		if (cmdllen < sizeof(cmdlbuf) - 1) 
 		    cmdlbuf[cmdllen]='\0';
-		if ((cmdlp = strrchr(cmdlbuf, '/'))) 
+		if (cmdlbuf[0] == '/' && (cmdlp = strrchr(cmdlbuf, '/'))) 
 		    cmdlp++;
 		else 
 		    cmdlp = cmdlbuf;



WARNING: multiple messages have this Message-ID (diff)
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/net-tools:gentoo commit in: /
Date: Sat, 20 Aug 2011 04:57:35 +0000 (UTC)	[thread overview]
Message-ID: <11310f89de97e5adc31462647fe360a9bf970c26.vapier@gentoo> (raw)
Message-ID: <20110820045735.bXVNSymzUvG5sUZoKCLPRSqy9JUIEyEn11VV35qC7qQ@z> (raw)

commit:     11310f89de97e5adc31462647fe360a9bf970c26
Author:     Bernd Eckenfels <net-tools <AT> lina <DOT> inka <DOT> de>
AuthorDate: Wed Apr 20 01:35:22 2011 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Wed Apr 20 01:35:22 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/net-tools.git;a=commit;h=11310f89

patch from Bert Wesarg to separate basename of -p only if it is absulote
path (in order to make argv[0]="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, <dc6iq@insu1.etec.uni-karlsruhe.de>
  *              Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
@@ -420,7 +420,7 @@ static void prg_cache_load(void)
 		    continue;
 		if (cmdllen < sizeof(cmdlbuf) - 1) 
 		    cmdlbuf[cmdllen]='\0';
-		if ((cmdlp = strrchr(cmdlbuf, '/'))) 
+		if (cmdlbuf[0] == '/' && (cmdlp = strrchr(cmdlbuf, '/'))) 
 		    cmdlp++;
 		else 
 		    cmdlp = cmdlbuf;



             reply	other threads:[~2011-08-20  4:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-20  4:57 Mike Frysinger [this message]
2011-08-20  4:57 ` [gentoo-commits] proj/net-tools:gentoo commit in: / Mike Frysinger
  -- strict thread matches above, loose matches on Subject: below --
2011-11-21  1:38 Mike Frysinger
2011-11-21  1:35 ` [gentoo-commits] proj/net-tools:master " Mike Frysinger
2011-11-21  1:35 Mike Frysinger
2011-11-21  1:35 Mike Frysinger
2011-08-20  4:57 Mike Frysinger
2011-04-09 13:58 Mike Frysinger
2011-04-09 13:58 Mike Frysinger
2011-04-09 13:58 Mike Frysinger
2011-04-09 13:58 [gentoo-commits] proj/net-tools:gentoo " Mike Frysinger
2011-04-09 13:58 ` [gentoo-commits] proj/net-tools:master " Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=11310f89de97e5adc31462647fe360a9bf970c26.vapier@gentoo \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox