[kbd] loadkeys does not open symlinks

Charles Celerier chckyn at gmail.com
Wed Jan 9 22:39:32 MSK 2019


Thank you for looking into this, but I just realized ln requires absolute
paths when creating symbolic links.

I feel so embarassed to have overlooked that! Apologies for wasting your
time.


On Wed, 9 Jan 2019 at 08:15, Alexey Gladkov <gladkov.alexey at gmail.com>
wrote:

> On Sun, Dec 30, 2018 at 05:40:24PM -0600, Charles Celerier wrote:
> > Hi,
> >
> > I would like to symlink a custom keymap into the keymaps directory
> > (/lkbo/keymaps/ in mh case), but I noticed that the loadkeys utility
> > will not open symbolic link files. Is there a reason for this?
>
> $ l /lib/kbd/keymaps/i386/qwerty/foo-link.map
> lrwxrwxrwx 1 root root 7 янв  9 14:11
> /lib/kbd/keymaps/i386/qwerty/foo-link.map -> foo.map
>
> $ strace -e trace=open,openat /bin/loadkeys foo-link 2>&1 |grep
> /lib/kbd/keymaps
> openat(AT_FDCWD, "/lib/kbd/keymaps",
> O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 4
> openat(AT_FDCWD, "/lib/kbd/keymaps/i386",
> O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 5
> openat(AT_FDCWD, "/lib/kbd/keymaps/i386/fgGIod",
> O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 6
> openat(AT_FDCWD, "/lib/kbd/keymaps/i386/qwerty",
> O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 6
> openat(AT_FDCWD, "/lib/kbd/keymaps/i386/qwerty/foo-link.map", O_RDONLY) = 7
>
> I can't reproduce.
>
> --
> Rgrds, legion
>
> _______________________________________________
> kbd mailing list
> kbd at lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/kbd
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.altlinux.org/pipermail/kbd/attachments/20190109/521c39b5/attachment.html>


More information about the kbd mailing list