3096ab0e45
From deraadt@ upstream: Remove all getenv() calls, especially those wrapped by issetugid(). getenv()'s wrapped by issetugid() are safe, but issetugid() is ... difficult to impliment on many operating systems. By accident, a grand experiment was run over the last year, where issetugid() returned 1 (the safe value) on a few operating systems. Noone noticed & complained that certain environment variables were not working.......
16 lines
230 B
C
16 lines
230 B
C
/*
|
|
* Public domain
|
|
* unistd.h compatibility shim
|
|
*/
|
|
|
|
#include_next <unistd.h>
|
|
|
|
#ifndef LIBCRYPTOCOMPAT_UNISTD_H
|
|
#define LIBCRYPTOCOMPAT_UNISTD_H
|
|
|
|
#ifndef HAVE_GETENTROPY
|
|
int getentropy(void *buf, size_t buflen);
|
|
#endif
|
|
|
|
#endif
|