[Pkg-shadow-devel] why shadow need xgetspnam

Nicolas François nicolas.francois at centraliens.net
Tue May 26 09:13:33 UTC 2015


Hello,

The reason is described on top of libmisc/xgetXXbyYY.c

xgetspnam provides a wrapper to the getpwnam or getpwnam_r functions to
ensure that the result is not modified by further call to getpwnam or
other libc function (such call could for example be hidden in a PAM function)

-- 
Nekral


On Mon, May 25, 2015 at 10:24:18PM +0800, rowan_pang at hotmail.com wrote:
> Dear sirs:
> 
>          Recently I read the shadow source code and confused about the
> shadow-login, It call the function "xgetspnam",why not use "getspnam",as
> shadow had implement. It's pleasure for you to let me know. Thanks
> 
>  
> 
> Rowan
> 
> 2015-5-25
> 

> _______________________________________________
> Pkg-shadow-devel mailing list
> Pkg-shadow-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-shadow-devel




More information about the Pkg-shadow-devel mailing list