Bug 27089 - filesystem created dangling /usr/lib/debug/bin,sbin,lib64,lib links with missing leading /
Summary: filesystem created dangling /usr/lib/debug/bin,sbin,lib64,lib links with miss...
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Neal Gompa
QA Contact:
URL:
Whiteboard:
Keywords:
: 28071 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-08-12 12:29 CEST by Bit Twister
Modified: 2021-01-13 14:30 CET (History)
1 user (show)

See Also:
Source RPM: filesystem-2.1.9-34.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Bit Twister 2020-08-12 12:29:32 CEST
Description of problem: mga8 dev0

filesystem created dangling links

# symlinks -r / | grep dangling

dangling: /usr/lib/debug/sbin -> usr/sbin
dangling: /usr/lib/debug/lib -> usr/lib
dangling: /usr/lib/debug/lib64 -> usr/lib64
dangling: /usr/lib/debug/bin -> usr/bin


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. clean alpha install and check for any dangling links
2. symlinks -r / | grep dangling
2. update all packages and check for new dangling links
3. symlinks -r / | grep dangling
Comment 1 Dave Hodgins 2020-08-12 14:18:40 CEST
As discussed on the dev ml ...
[dave@x8v ~]$ rpm -q --scripts filesystem |grep symlink
--# If we are running in pretrans in a fresh root, there is no /usr and symlinks.
--# so, let's create the toplevel symlinks here and the directories they point to.
posix.symlink("usr/bin", "/bin")
posix.symlink("usr/sbin", "/sbin")
posix.symlink("usr/lib", "/lib")
posix.symlink("usr/bin", "/usr/lib/debug/bin")
posix.symlink("usr/lib", "/usr/lib/debug/lib")
posix.symlink("usr/lib64", "/usr/lib/debug/lib64")
posix.symlink("usr/sbin", "/usr/lib/debug/sbin")
posix.symlink("usr/lib64", "/lib64")
posix.symlink("../run", "/var/run")
posix.symlink("../run/lock", "/var/lock")
[dave@x8v ~]$ rpm -q -i filesystem |grep ^Source
Source RPM  : filesystem-2.1.9-34.mga8.src.rpm
 
So it's the filesystem package that creates the dangling symlink.

The faulty "usr/..." was added in
http://svnweb.mageia.org/packages/cauldron/filesystem/current/SPECS/filesystem.spec?r1=1587163&r2=1587162&pathrev=1587163
so assigning to ovitters.

CC: (none) => davidwhodgins
Assignee: bugsquad => olav

Comment 2 Olav Vitters 2020-08-12 14:37:36 CEST
That change wasn't me!
Comment 3 Dave Hodgins 2020-08-12 14:54:37 CEST
Sorry, misread the svnweb page. Reassigning.

Assignee: olav => ngompa13

Comment 4 Dave Hodgins 2021-01-13 00:22:19 CET
*** Bug 28071 has been marked as a duplicate of this bug. ***
Bit Twister 2021-01-13 03:38:45 CET

Summary: filesystem created dangling links => filesystem created dangling /usr/lib/debug/bin,sbin,lib64,lib links

Dave Hodgins 2021-01-13 14:30:12 CET

Summary: filesystem created dangling /usr/lib/debug/bin,sbin,lib64,lib links => filesystem created dangling /usr/lib/debug/bin,sbin,lib64,lib links with missing leading /


Note You need to log in before you can comment on or make changes to this bug.