aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-19 21:24:17 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-19 21:24:17 +0000
commitf772075e79d2493702a212124b8701cf265e067d (patch)
tree35b7039cf3d4fab57d1e4c69cc0bea5bc847a832 /libbb
parent7101c9124c81ab0c4a1d93a02372a2bed8701f19 (diff)
downloadbusybox-w32-f772075e79d2493702a212124b8701cf265e067d.tar.gz
busybox-w32-f772075e79d2493702a212124b8701cf265e067d.tar.bz2
busybox-w32-f772075e79d2493702a212124b8701cf265e067d.zip
ls: use get_cached_username/groupname
git-svn-id: svn://busybox.net/trunk/busybox@17391 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r--libbb/procps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/procps.c b/libbb/procps.c
index a799bf927..e7635e5f4 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -13,7 +13,7 @@
13 13
14typedef struct unsigned_to_name_map_t { 14typedef struct unsigned_to_name_map_t {
15 unsigned id; 15 unsigned id;
16 char name[12]; 16 char name[USERNAME_MAX_SIZE];
17} unsigned_to_name_map_t; 17} unsigned_to_name_map_t;
18 18
19typedef struct cache_t { 19typedef struct cache_t {
@@ -137,7 +137,7 @@ procps_status_t* procps_scan(procps_status_t* sp, int flags)
137 if (flags & PSSCAN_UIDGID) { 137 if (flags & PSSCAN_UIDGID) {
138 if (stat(filename, &sb)) 138 if (stat(filename, &sb))
139 break; 139 break;
140 /* Need comment - is this effective or read UID/GID? */ 140 /* Need comment - is this effective or real UID/GID? */
141 sp->uid = sb.st_uid; 141 sp->uid = sb.st_uid;
142 sp->gid = sb.st_gid; 142 sp->gid = sb.st_gid;
143 } 143 }
@@ -209,7 +209,7 @@ procps_status_t* procps_scan(procps_status_t* sp, int flags)
209 if ((unsigned char)(buf[n]) < ' ') 209 if ((unsigned char)(buf[n]) < ' ')
210 buf[n] = ' '; 210 buf[n] = ' ';
211 } while (n); 211 } while (n);
212 sp->cmd = strdup(buf); 212 sp->cmd = xstrdup(buf);
213 } 213 }
214 break; 214 break;
215 } 215 }