From: "Ned Ludd (solar)" <solar@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-projects commit in pax-utils: pspax.c
Date: Thu, 20 Mar 2008 19:08:17 +0000 [thread overview]
Message-ID: <E1JcQ7d-0001UB-8v@stork.gentoo.org> (raw)
solar 08/03/20 19:08:17
Modified: pspax.c
Log:
- keep username alingment when username exceeds 8 standard chars
Revision Changes Path
1.41 pax-utils/pspax.c
file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/pspax.c?rev=1.41&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/pspax.c?rev=1.41&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/pspax.c?r1=1.40&r2=1.41
Index: pspax.c
===================================================================
RCS file: /var/cvsroot/gentoo-projects/pax-utils/pspax.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- pspax.c 17 Jan 2008 04:37:19 -0000 1.40
+++ pspax.c 20 Mar 2008 19:08:16 -0000 1.41
@@ -12,7 +12,7 @@
* cc -o pspax pspax.c -DWANT_SYSCAP -lcap
*/
-static const char *rcsid = "$Id: pspax.c,v 1.40 2008/01/17 04:37:19 solar Exp $";
+static const char *rcsid = "$Id: pspax.c,v 1.41 2008/03/20 19:08:16 solar Exp $";
const char * const argv0 = "pspax";
#include "paxinc.h"
@@ -364,6 +364,9 @@
WRAP_SYSCAP(capgetp(pid, cap_d));
WRAP_SYSCAP(caps = cap_to_text(cap_d, &length));
+ if (pwd && strlen(pwd->pw_name) >= 8)
+ pwd->pw_name[8] = 0;
+
if (show_all || type) {
printf("%-8s %-6d %-6s %-4s %-10s %-16s %-4s %s %s %s\n",
pwd ? pwd->pw_name : "--------",
--
gentoo-commits@lists.gentoo.org mailing list
next reply other threads:[~2008-03-20 19:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-20 19:08 Ned Ludd (solar) [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-04-10 21:54 [gentoo-commits] gentoo-projects commit in pax-utils: pspax.c Mike Frysinger (vapier)
2010-02-28 19:12 Ned Ludd (solar)
2009-03-15 9:23 Mike Frysinger (vapier)
2009-03-15 8:51 Mike Frysinger (vapier)
2008-12-30 13:50 Mike Frysinger (vapier)
2007-09-18 5:22 gecos missing (solar)
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=E1JcQ7d-0001UB-8v@stork.gentoo.org \
--to=solar@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