aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libc_compat/ubuntu_14/secure_getenv.cpp
blob: 14e3e90906a991eff7137bb6ecd34eb4ed0ec8bf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdlib.h>

#include "glibc.h"

extern "C" {
    char *secure_getenv(const char *name) noexcept {
            if (NUbuntuCompat::GetGlibc().IsSecure()) {
                return nullptr;
            }
            return getenv(name);
    }
}