https://sourceware.org/bugzilla/show_bug.cgi?id=33903
Bug ID: 33903
Summary: unsorted DEBUGINFOD_URLS from profile.sh
Product: elfutils
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: debuginfod
Assignee: unassigned at sourceware dot org
Reporter: tiagodepalves at gmail dot com
CC: elfutils-devel at sourceware dot org
Target Milestone: ---
Drop-ins are usually accessed in filename order, so that users are able to
explicitly select how their config files are used by prepending prefixes like
`00-` or `zz-` to their filename. This used to be respected until elfutils
0.192, but then commit 00cb3efe36337f27925dbff9b2e7d97c7df95bf8 was introduced,
which uses the order produced by `find` instead:
```console
$ ls /etc/debuginfod
archlinux.urls localhost.urls
$ cat /etc/debuginfod/*.urls
https://debuginfod.archlinux.org
http://localhost:8002
$ find /etc/debuginfod -name "*.urls" -print0 | xargs -0 cat
http://localhost:8002
https://debuginfod.archlinux.org
```
Note that the `find` order can change without direct user interaction (e.g.
after filesystem compactation) making `profile.sh` unreliable for multiple
drop-ins. The only way to guarantee an ordering for `DEBUGINFOD_URLS` is by
user specifying it themselves.
--
You are receiving this mail because:
You are on the CC list for the bug.