aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2005-01-19 17:19:06 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2005-01-19 17:19:06 +0000
commitc7199dd3fbaa084c2c7a64d46feada3355a42e88 (patch)
treee3af4a38a1f1b6f8511de5a146afbbc18ff59228
parente1745c455bd9c1b4adbe58c4cefa4834439e72b9 (diff)
downloadipacct-c7199dd3fbaa084c2c7a64d46feada3355a42e88.tar.gz
ipacct-c7199dd3fbaa084c2c7a64d46feada3355a42e88.tar.bz2
(change_privs): Bugfix. HAVE_SETREID was misspelled
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 59e8eaf..b067aae 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,7 +14,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-/* $Id: main.c,v 1.6 2004/12/22 17:11:53 gray Exp $ */
+/* $Id: main.c,v 1.7 2005/01/19 17:19:06 gray Exp $ */
#if defined(HAVE_CONFIG_H)
# include <config.h>
#endif
@@ -248,7 +248,7 @@ change_privs (uid_t uid, gid_t gid)
|| (getuid() != uid
&& (geteuid() == 0 || getuid() == 0))) {
-#if defined(have_setreuid)
+#if defined(HAVE_SETREUID)
if (geteuid() != uid) {
if (setreuid(uid, -1) < 0) {
syslog (log_error,

Return to:

Send suggestions and report system problems to the System administrator.