mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
discover-image: pass the right error variable
This commit is contained in:
committed by
Luca Boccassi
parent
5fc0b2f9da
commit
cc4482ee23
@@ -1447,7 +1447,7 @@ int image_read_metadata(Image *i, const ImagePolicy *image_policy) {
|
||||
else if (r >= 0) {
|
||||
r = read_etc_hostname(path, &hostname);
|
||||
if (r < 0)
|
||||
log_debug_errno(errno, "Failed to read /etc/hostname of image %s: %m", i->name);
|
||||
log_debug_errno(r, "Failed to read /etc/hostname of image %s: %m", i->name);
|
||||
}
|
||||
|
||||
path = mfree(path);
|
||||
|
||||
Reference in New Issue
Block a user