Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sysutils/incron: Fix build with llvm15
- Remove legacy codes related to gcc42 - Pet portclippy - Utilize USES=localbase Approved by: portmgr (blanket)
- Loading branch information
Showing
2 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- 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()); |