Created attachment 7354 [details] Add utmp support for OpenBSD The attached patch adds utmp support for OpenBSD. This has been in our ports tree for 6.5 years so I might as well try to push it upstream now. :)
Any chance of review and having this commited to the tree?
Can the error handling be improved? If intermediate steps fail, right now the patch creates a fd leak. Question: Is this really the BSD way to do the pututline operation? To me this seems quite crude. Do you have a sample snippet somewhere from OpenBSD code? Thanks, Volker
Created attachment 8210 [details] Add utmp support for OpenBSD
I fixed the fd leaks with this second revision of the diff. I am not familiar enough with the handling of utmp on OpenBSD so I have asked some of our other developers to comment on this diff.