[Pkg-kbd-devel] kbd -b needlessly requires VT access

Andreas Henriksson andreas at fatal.se
Sun Aug 28 11:59:03 UTC 2016


Hello Andy Valencia.

On Fri, Aug 26, 2016 at 08:54:53AM -0700, Andy Valencia wrote:
> When generating a binary map using "loadkeys -b" to target a smaller
> device, the command fails unless run in an environment where it can
> access a console device for itself.  This is due to its unconditional
> use of getfd(), even when all the command is going to do is write
> out a binary version of its input file.

I see that the fd returned from getfd is only conditionally used, but
the call to getfd will result in exit(1) being called if getfd is
about to fail. This indeed sounds suboptimal.
Not sure if moving the getfd call to where fd is used, or if guarding
the early call to getfd with the same guards that will make use
of getfd, is the best option.

Could you please try to contact the upstream development list about
this issue?

https://lists.altlinux.org/mailman/listinfo/kbd

Regards,
Andreas Henriksson



More information about the Pkg-kbd-devel mailing list