[sudo-workers] [PATCH] fix utmpx workaround logic

Mike Frysinger vapier at gentoo.org
Mon Apr 23 19:33:25 EDT 2012


# HG changeset patch
# User Mike Frysinger <vapier at gentoo.org>
# Date 1335224000 14400
# Node ID e9022bc70c193e004ed05d2f02ec5518d6ebeec7
# Parent  c7716291a85681d24794bb7de5d9c5421dd15fda
fix utmpx workaround logic

Neither setutxent(), nor setutent(), nor endutxent(), nor endutent() take an argument (and sudo does not attempt to pass one).  So drop the parameter to fix building on systems lacking utmpx.h.

diff -r c7716291a856 -r e9022bc70c19 src/utmp.c
--- a/src/utmp.c	Mon Apr 23 16:47:42 2012 -0400
+++ b/src/utmp.c	Mon Apr 23 19:33:20 2012 -0400
@@ -63,8 +63,8 @@
 #if !defined(HAVE_GETUTXID) && defined(HAVE_GETUTID)
 # define getutxline(u)	getutline(u)
 # define pututxline(u)	pututline(u)
-# define setutxent(u)	setutent(u)
-# define endutxent(u)	endutent(u)
+# define setutxent()	setutent()
+# define endutxent()	endutent()
 #endif /* !HAVE_GETUTXID && HAVE_GETUTID */
 
 #ifdef HAVE_GETUTXID



More information about the sudo-workers mailing list