NOLINT for getenv

This commit is contained in:
Yakov Olkhovskiy 2023-03-03 09:24:58 -05:00 committed by GitHub
parent a99928d10a
commit a8ceab1366
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,7 +170,7 @@ int decompress(char * input, char * output, off_t start, off_t end, size_t max_n
bool isSudo() bool isSudo()
{ {
return getuid() == 0 && geteuid() == 0 && getenv("SUDO_USER") && getenv("SUDO_UID") && getenv("SUDO_GID"); return getuid() == 0 && geteuid() == 0 && getenv("SUDO_USER") && getenv("SUDO_UID") && getenv("SUDO_GID"); // NOLINT(concurrency-mt-unsafe)
} }
/// Read data about files and decomrpess them. /// Read data about files and decomrpess them.