Re: [PATCH] malloced getpw/grxxx functions for bb

2015-01-03 Thread Denys Vlasenko
On Sat, Jan 3, 2015 at 1:38 AM, tito farmat...@tiscali.it wrote: If I understand it correctly now we use our internal malloced buffer also for the _r functions and copy the results to the user supplied buffer? Yes. Also I wonder about: while ((buf = xmalloc_fgetline(fp)) != NULL) { if we

Re: [PATCH] malloced getpw/grxxx functions for bb

2015-01-03 Thread Laszlo Papp
On Sat, Jan 3, 2015 at 12:38 AM, tito farmat...@tiscali.it wrote: On Friday 02 January 2015 21:04:04 you wrote: On Mon, Dec 29, 2014 at 10:19 PM, tito farmat...@tiscali.it wrote: after putting more work at this malloced libpwdgrp functions I think they now are pretty robust, with no

Re: [PATCH] malloced getpw/grxxx functions for bb

2015-01-02 Thread Denys Vlasenko
On Mon, Dec 29, 2014 at 10:19 PM, tito farmat...@tiscali.it wrote: after putting more work at this malloced libpwdgrp functions I think they now are pretty robust, with no memory leaks and able to handle more or less gracefully problematic passwd/group/shadow files. The main features of this

Re: [PATCH] malloced getpw/grxxx functions for bb

2015-01-02 Thread Denys Vlasenko
On Fri, Jan 2, 2015 at 9:04 PM, Denys Vlasenko vda.li...@googlemail.com wrote: How about attached version? It compiles and seems to work with very limited testing. I pushed it into git, to make it easier for others to discover bugs and generate further patches. Thanks Tito for persisting!

Re: [PATCH] malloced getpw/grxxx functions for bb

2015-01-02 Thread tito
On Friday 02 January 2015 21:04:04 you wrote: On Mon, Dec 29, 2014 at 10:19 PM, tito farmat...@tiscali.it wrote: after putting more work at this malloced libpwdgrp functions I think they now are pretty robust, with no memory leaks and able to handle more or less gracefully

[PATCH] malloced getpw/grxxx functions for bb

2014-12-29 Thread tito
On Saturday 06 December 2014 15:24:01 tito wrote: On Sunday 09 November 2014 20:56:07 tito wrote: On Sunday 28 September 2014 15:24:50 tito wrote: On Saturday 27 September 2014 14:58:08 tito wrote: On Wednesday 24 September 2014 23:02:55 tito wrote: On Saturday 20 September 2014