Gentoo Archives: gentoo-commits

From: "Ned Ludd (solar)" <solar@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-projects commit in pax-utils: pspax.c
Date: Thu, 20 Mar 2008 19:08:19
Message-Id: E1JcQ7d-0001UB-8v@stork.gentoo.org
1 solar 08/03/20 19:08:17
2
3 Modified: pspax.c
4 Log:
5 - keep username alingment when username exceeds 8 standard chars
6
7 Revision Changes Path
8 1.41 pax-utils/pspax.c
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/pspax.c?rev=1.41&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/pspax.c?rev=1.41&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-projects/pax-utils/pspax.c?r1=1.40&r2=1.41
13
14 Index: pspax.c
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-projects/pax-utils/pspax.c,v
17 retrieving revision 1.40
18 retrieving revision 1.41
19 diff -u -r1.40 -r1.41
20 --- pspax.c 17 Jan 2008 04:37:19 -0000 1.40
21 +++ pspax.c 20 Mar 2008 19:08:16 -0000 1.41
22 @@ -12,7 +12,7 @@
23 * cc -o pspax pspax.c -DWANT_SYSCAP -lcap
24 */
25
26 -static const char *rcsid = "$Id: pspax.c,v 1.40 2008/01/17 04:37:19 solar Exp $";
27 +static const char *rcsid = "$Id: pspax.c,v 1.41 2008/03/20 19:08:16 solar Exp $";
28 const char * const argv0 = "pspax";
29
30 #include "paxinc.h"
31 @@ -364,6 +364,9 @@
32 WRAP_SYSCAP(capgetp(pid, cap_d));
33 WRAP_SYSCAP(caps = cap_to_text(cap_d, &length));
34
35 + if (pwd && strlen(pwd->pw_name) >= 8)
36 + pwd->pw_name[8] = 0;
37 +
38 if (show_all || type) {
39 printf("%-8s %-6d %-6s %-4s %-10s %-16s %-4s %s %s %s\n",
40 pwd ? pwd->pw_name : "--------",
41
42
43
44 --
45 gentoo-commits@l.g.o mailing list