ports/sysutils/incron/files/extra-patch-FreeBSD_14
Muhammad Moinur Rahman ca6b3bd6d2 sysutils/incron: Fix build with llvm15
- Remove legacy codes related to gcc42
- Pet portclippy
- Utilize USES=localbase

Approved by:	portmgr (blanket)
2023-06-10 19:14:07 +02:00

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());