From 11ea9932e8d90e4e0681f3062f26b494842e675d Mon Sep 17 00:00:00 2001 From: Roger Leigh Date: Sun, 27 Sep 2009 22:52:44 +0100 Subject: sbuild: Add reentrant passwd and group wrappers In order to make the library thread-safe, use the reentrant getpw*_r and getgr*_r functions in place of the older unsafe functions which use static buffers. The passwd and group structures are inherited by C++ classes of the same name which allow handling of dynamic memory allocation while at the same time allowing use of RAII and passing to C functions. --- TODO | 4 ---- 1 file changed, 4 deletions(-) (limited to 'TODO') diff --git a/TODO b/TODO index 6cde7d0b..316a25e1 100644 --- a/TODO +++ b/TODO @@ -28,10 +28,6 @@ and test for particular permissions. POTENTIAL --------- -* Use of passwd/group databases should be thread-safe - - - Use the _r variants of getpw*, getgr*. - * Add tests for ** Auth -- cgit v1.2.3