summaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorDenis Vlasenko2007-01-19 21:24:17 +0000
committerDenis Vlasenko2007-01-19 21:24:17 +0000
commit2405ad659e2596b17c88e7b950c086159d06cc6e (patch)
tree35b7039cf3d4fab57d1e4c69cc0bea5bc847a832 /libbb
parent9af7c9d6b62ceb07a9ba24cee0cf4a08c689235e (diff)
downloadbusybox-2405ad659e2596b17c88e7b950c086159d06cc6e.zip
busybox-2405ad659e2596b17c88e7b950c086159d06cc6e.tar.gz
ls: use get_cached_username/groupname
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 a799bf9..e7635e5 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -13,7 +13,7 @@
typedef struct unsigned_to_name_map_t {
unsigned id;
- char name[12];
+ char name[USERNAME_MAX_SIZE];
} unsigned_to_name_map_t;
typedef struct cache_t {
@@ -137,7 +137,7 @@ procps_status_t* procps_scan(procps_status_t* sp, int flags)
if (flags & PSSCAN_UIDGID) {
if (stat(filename, &sb))
break;
- /* Need comment - is this effective or read UID/GID? */
+ /* Need comment - is this effective or real UID/GID? */
sp->uid = sb.st_uid;
sp->gid = sb.st_gid;
}
@@ -209,7 +209,7 @@ procps_status_t* procps_scan(procps_status_t* sp, int flags)
if ((unsigned char)(buf[n]) < ' ')
buf[n] = ' ';
} while (n);
- sp->cmd = strdup(buf);
+ sp->cmd = xstrdup(buf);
}
break;
}