Linux console tools development discussion
 help / color / mirror / Atom feed
From: Alexey Gladkov <gladkov.alexey@gmail.com>
To: Linux console tools development discussion <kbd@lists.altlinux.org>
Subject: Re: [kbd] loadkeys does not open symlinks
Date: Wed, 9 Jan 2019 14:14:56 +0100
Message-ID: <20190109131456.GC3332@comp-core-i7-2640m-0182e6> (raw)
In-Reply-To: <CALfJC=JJDnxVw4Y1Js--fuKezd4oVmXo0nEeTfEV6TCqSP0p-Q@mail.gmail.com>

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



           reply	other threads:[~2019-01-09 13:14 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CALfJC=JJDnxVw4Y1Js--fuKezd4oVmXo0nEeTfEV6TCqSP0p-Q@mail.gmail.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190109131456.GC3332@comp-core-i7-2640m-0182e6 \
    --to=gladkov.alexey@gmail.com \
    --cc=kbd@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Linux console tools development discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/kbd/0 kbd/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 kbd kbd/ http://lore.altlinux.org/kbd \
		kbd@lists.altlinux.org kbd@lists.altlinux.ru kbd@lists.altlinux.com
	public-inbox-index kbd

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.kbd


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git