diff options
author | Karel Zak | 2019-05-14 15:47:02 +0200 |
---|---|---|
committer | Karel Zak | 2019-05-14 15:47:02 +0200 |
commit | 0ed52c662eea74f4c8a6d926f601a3c77fa3ff69 (patch) | |
tree | 442a1e844377fea3fc7b5169dcbf9c47cfeff8bc /lib/colors.c | |
parent | build-sys: add PKG_INSTALLDIR fallback (diff) | |
download | kernel-qcow2-util-linux-0ed52c662eea74f4c8a6d926f601a3c77fa3ff69.tar.gz kernel-qcow2-util-linux-0ed52c662eea74f4c8a6d926f601a3c77fa3ff69.tar.xz kernel-qcow2-util-linux-0ed52c662eea74f4c8a6d926f601a3c77fa3ff69.zip |
lib/canonicalize: verify DM paths [coverity scan]
Now the code only checks that /sys/.../dm/name exists, but never
verify the device node in /dev (because path prefix is never NULL).
The prefix is used to redirect hardcoded paths to /sys dumps (e.g.
lsblk regression tests, etc.)
This bug has been introduced in v2.33. Fortunately, it's probably no
big issue as /dev is always in sync with /sys (thanks to udevd).
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'lib/colors.c')
0 files changed, 0 insertions, 0 deletions