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


Groups > linux.debian.kernel > #84095

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

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Thorsten Glaser <tg@mirbsd.de>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1082647: copy_exec: [regression] ignores trailing slash, installs file as directory name
Date Tue, 24 Sep 2024 03:00:01 +0200
Message-ID <Jq24h-eoja-1@gated-at.bofh.it> (permalink)
X-Original-To Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Tue Sep 24 00:51:09 2024
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -1.651
Reply-To Thorsten Glaser <tg@mirbsd.de>, 1082647@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc tg@mirbsd.de, Debian kernel team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message report 1082647
X-Debian-Pr-Package initramfs-tools-core
X-Debian-Pr-Source initramfs-tools
Content-Type text/plain; charset="utf-8"
MIME-Version 1.0
Content-Transfer-Encoding base64
X-Mailer reportbug 12.0.0
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1859917
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 37
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Tue, 24 Sep 2024 02:46:42 +0200
X-Original-Message-ID <172713880279.3633.3012037699152941732.reportbug@loch.mirbsd.org>
Xref csiph.com linux.debian.bugs.dist:1214076 linux.debian.kernel:84095

Cross-posted to 2 groups.

Show key headers only | View raw


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/

In bookworm, the first line instead of copying the
file rnd_shuf to /usr/libexec/rnd_shuf it copies it
to /usr/libexec and the second does no better.

Incidentally…

copy_exec /usr/lib/klibc/bin/rnd_shuf /usr/libexec/
copy_exec /usr/sbin/rdate /usr/libexec/rdate

… makes the second line fail:

mkdir: cannot create directory ‘/var/tmp/mkinitramfs_eQ7nC7//usr/libexec’: File exists

So copy_exec clearly still i̲s̲ capable of creating missing
intermediate directories, but something made it stop
honouring trailing slashes.

I wonder what else, other than my script to enable the
network interface, get the clocktime, and disable it
again, on an RPi that has no RTC, will break on users’
systems from this. This really needs to be fixed in
stable-pu.


-- System Information:
Debian Release: 12.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'proposed-updates'), (500, 'stable')
Architecture: armel (armv6l)

Kernel: Linux 6.1.0-25-rpi (UP)
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to C.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages initramfs-tools-core depends on:
ii  coreutils    9.1-1
ii  cpio         2.13+dfsg-7.1
ii  e2fsprogs    1.47.0-2
ii  klibc-utils  2.0.12-1
ii  kmod         30+20221128-1
ii  logsave      1.47.0-2
ii  udev         252.30-1~deb12u2

Versions of packages initramfs-tools-core recommends:
ii  busybox  1:1.35.0-4+b3
ii  zstd     1.5.4+dfsg2-5

Versions of packages initramfs-tools-core suggests:
pn  bash-completion  <none>

-- Configuration Files:
/etc/initramfs-tools/initramfs.conf changed:
MODULES=dep
BUSYBOX=auto
KEYMAP=n
COMPRESS=zstd
DEVICE=
NFSROOT=auto
RUNSIZE=10%
FSTYPE=auto


-- no debconf information

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


Thread

Bug#1082647: copy_exec: [regression] ignores trailing slash, installs file as directory name Thorsten Glaser <tg@mirbsd.de> - 2024-09-24 03:00 +0200
  Bug#1082647: copy_exec: [regression] ignores trailing slash, installs file as directory name Thorsten Glaser <tg@mirbsd.de> - 2024-09-24 17:30 +0200

csiph-web