]> granicus.if.org Git - procps-ng/commitdiff
library: changing P_G_SZ from 20 to 33
authorJaromir Capik <jcapik@redhat.com>
Mon, 14 Jul 2014 14:21:52 +0000 (16:21 +0200)
committerJaromir Capik <jcapik@redhat.com>
Mon, 14 Jul 2014 14:21:52 +0000 (16:21 +0200)
Nowadays the usernames can be 32 characters long
(typically OpenShift usernames use the whole length)
and the old limit was preventing us from processing
them correctly.
The macro change affects the proc_t structure size.

proc/pwcache.h

index 678554d32b910a550a016e46b59d7417658cf175..6ce340761ec1a7e839107a4527f324e6430282e3 100644 (file)
@@ -7,7 +7,7 @@
 EXTERN_C_BEGIN
 
 // used in pwcache and in readproc to set size of username or groupname
-#define P_G_SZ 20
+#define P_G_SZ 33
 
 extern char *user_from_uid(uid_t uid);
 extern char *group_from_gid(gid_t gid);