]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/colors: ensure fallback to system directory
authorThomas Weißschuh <thomas@t-8ch.de>
Thu, 23 Feb 2023 02:20:28 +0000 (02:20 +0000)
committerThomas Weißschuh <thomas@t-8ch.de>
Thu, 23 Feb 2023 02:24:00 +0000 (02:24 +0000)
commit4bdf22803f9a41329694e0c3c82189635dccdcd0
treeece7989ee64eeefc677c20833cf398ff4f203acd
parent261888f15873464b164ede5bb68aaecb06706f50
lib/colors: ensure fallback to system directory

The return value from colors_readdir(homedir) is used to determine if
the system directory should be searched.
Previously the mere existence of `~/.config/terminal-colors.d/` would
inhibit all lookups in `/etc/terminal-colors.d`.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
lib/colors.c