summaryrefslogtreecommitdiff
path: root/sysutils/incron/files/extra-patch-FreeBSD_14
blob: 9d2606f8e8a7d3de6c601a35090f5cd6db9493ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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());