From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa.local.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 Date: Wed, 9 Jan 2019 14:14:56 +0100 From: Alexey Gladkov To: Linux console tools development discussion Message-ID: <20190109131456.GC3332@comp-core-i7-2640m-0182e6> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [kbd] loadkeys does not open symlinks X-BeenThere: kbd@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Linux console tools development discussion List-Id: Linux console tools development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 13:15:04 -0000 Archived-At: List-Archive: 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