Mercurial > gnulib
diff lib/tmpdir.c @ 17315:087501e891d9
tmpdir: use secure_getenv
* lib/tmpdir.c (__secure_getenv) [!LIBC]:
Define to secure_getenv, not getenv.
* m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
as that's now secure_getenv's job.
* modules/tmpdir (Depends-on): Add secure_getenv.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Mon, 04 Feb 2013 20:34:17 -0800 |
parents | e542fd46ad6f |
children | 960eeef4f5eb |
line wrap: on
line diff
--- a/lib/tmpdir.c Mon Feb 04 18:36:06 2013 -0800 +++ b/lib/tmpdir.c Mon Feb 04 20:34:17 2013 -0800 @@ -53,13 +53,10 @@ # define struct_stat64 struct stat64 #else # define struct_stat64 struct stat +# define __secure_getenv secure_getenv # define __xstat64(version, path, buf) stat (path, buf) #endif -#if ! (HAVE___SECURE_GETENV || _LIBC) -# define __secure_getenv getenv -#endif - /* Pathname support. ISSLASH(C) tests whether C is a directory separator character. */