Mercurial > hg > octave-nkf > gnulib-hg
changeset 17317:e67939626bf8
tempname: use secure_getenv
* lib/tempname.c (__secure_getenv) [!_LIBC]:
Define to secure_getenv, not getenv.
* modules/tempname (Depends-on):
Add secure_getenv.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 04 Feb 2013 18:36:06 -0800 |
parents | 8108e0239bb6 |
children | 087501e891d9 |
files | ChangeLog lib/tempname.c modules/tempname |
diffstat | 3 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2013-02-04 Paul Eggert <eggert@cs.ucla.edu> + tempname: use secure_getenv + * lib/tempname.c (__secure_getenv) [!_LIBC]: + Define to secure_getenv, not getenv. + * modules/tempname (Depends-on): + Add secure_getenv. + secure_getenv: new module * MODULES.html.sh (Extra functions based on ANSI C 89): Add secure_getenv.
--- a/lib/tempname.c +++ b/lib/tempname.c @@ -68,10 +68,7 @@ # define __mkdir mkdir # define __open open # define __lxstat64(version, file, buf) lstat (file, buf) -#endif - -#if ! (HAVE___SECURE_GETENV || _LIBC) -# define __secure_getenv getenv +# define __secure_getenv secure_getenv #endif #ifdef _LIBC