mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 00:01:52 -04:00
- Remove legacy codes related to gcc42 - Pet portclippy - Utilize USES=localbase Approved by: portmgr (blanket)
20 lines
416 B
Text
20 lines
416 B
Text
--- usertable.cpp.orig 2023-06-10 14:06:49 UTC
|
|
+++ usertable.cpp
|
|
@@ -571,17 +571,6 @@ bool UserTable::MayAccess(const std::string& rPath, bo
|
|
return false; // no access right found
|
|
}
|
|
|
|
-#ifndef __linux__
|
|
-static int
|
|
-clearenv(void)
|
|
-{
|
|
- extern char **environ;
|
|
-
|
|
- environ[0] = NULL;
|
|
- return 0;
|
|
-}
|
|
-#endif
|
|
-
|
|
void UserTable::RunAsUser(std::string cmd) const
|
|
{
|
|
struct passwd* pwd = getpwnam(m_user.c_str());
|