Skip Menu |

This queue is for tickets about the User-Utmp CPAN distribution.

Report information
The Basics
Id: 75509
Status: new
Priority: 0/
Queue: User-Utmp

People
Owner: Nobody in particular
Requestors: ed [...] 80386.nl
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: User::Utmp: Remove dependency on utmp
Date: Sat, 3 Mar 2012 19:58:48 +0100
To: bug-User-Utmp [...] rt.cpan.org
From: Ed Schouten <ed [...] 80386.nl>
Hi all, It seems the User::Utmp module only works when utmp is present. As of FreeBSD 9, utmp is gone, so utmpx is the only way of accessing the user accounting database. The following patch makes the User::Utmp module work on FreeBSD. All tests pass, except test 4, as FreeBSD's implementation does not offer utmpxname(). Opening other files must be done using the setutxdb() function, but its API is incompatible with utmpxname(). http://80386.nl/pub/user-utmp.txt Maybe we can somehow run test 4 only when utmpxname() is present? -- Ed Schouten <ed@80386.nl> WWW: http://80386.nl/