secure_getenv.cpp 250 B

123456789101112
  1. #include <stdlib.h>
  2. #include "glibc.h"
  3. extern "C" {
  4. char *secure_getenv(const char *name) noexcept {
  5. if (NUbuntuCompat::GetGlibc().IsSecure()) {
  6. return nullptr;
  7. }
  8. return getenv(name);
  9. }
  10. }