useradd segfaults
John Newbigin <[email protected]> Fri, 25 Feb 2005 16:38:17 +1100
| Newsgroups | gmane.linux.pld.shadow.general |
|---|---|
| Message-ID | <[email protected]> |
I have reported this problem before and I really would like it resolved. There is a static buffer used by shadow groups which is easily overrun if too many users are added into the same group. The problem is the buffer size defined in /lib/gshadow.c line 51 #define MAXMEM 1024 Gets filled. As a workaround I increase the buffer size but this should be fixed. See https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=125510 I have coded a patch which does dynamic allocation but the existing code seems a bit funny so a rewrite is possibly required. I am willing to do this if someone wants to check it for me. John. -- John Newbigin Computer Systems Officer Faculty of Information and Communication Technologies Swinburne University of Technology Melbourne, Australia http://www.it.swin.edu.au/staff/jnewbigin