Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #372829

Bug#1082647: copy_exec: [regression] ignores trailing slash, installs file as directory name

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.rc
Subject Bug#1082647: copy_exec: [regression] ignores trailing slash, installs file as directory name
Date 2024-09-24 13:00 +0200
Message-ID <JqbqV-eug9-3@gated-at.bofh.it> (permalink)
References <Jq24h-eoja-1@gated-at.bofh.it> <Jq24h-eoja-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: tag -1 confirmed
Control: affects -1 release.debian.org

On Tue, 2024-09-24 at 02:46 +0200, Thorsten Glaser wrote:
> Package: initramfs-tools-core
> Version: 0.142+deb12u1
> Severity: serious
> Justification: hidden breakage for users, ought to be fixed in stable-pu
> X-Debbugs-Cc: tg@mirbsd.de
> 
> In bullseye, this would work:
> 
> copy_exec /usr/lib/klibc/bin/rnd_shuf /usr/libexec/
> copy_exec /usr/sbin/rdate /usr/libexec/
[...]

This was not an intended feature.  When specifiing a diectory as the
target you are supposed to ensure that it already exists under
${DESTDIR}.  It seems that this just happened to work when the target
name ended in a slash.

The changes in the last point release to avoid duplicating files
accessed via directory symlinks broke that because realpath strips the
trailing slash.

I suppose I can make this work again for bookworm, but I won't do so
for unstable.

Ben.

-- 
Ben Hutchings
Knowledge is power.  France is bacon.

Back to linux.debian.bugs.rc | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1082647: copy_exec: [regression] ignores trailing slash, installs file as directory name Ben Hutchings <ben@decadent.org.uk> - 2024-09-24 13:00 +0200
  Bug#1082647: copy_exec: [regression] ignores trailing slash, installs file as directory name Ben Hutchings <ben@decadent.org.uk> - 2024-09-24 19:30 +0200
    Bug#1082647: copy_exec: [regression] ignores trailing slash, installs file as directory name Thorsten Glaser <tg@mirbsd.de> - 2024-09-24 21:00 +0200

csiph-web