mirror of
https://github.com/systemd/systemd.git
synced 2026-07-20 06:20:28 +00:00
network/varlink: fix error cause
Follow-up for e1254d0616.
Addresses https://github.com/systemd/systemd/pull/31811#discussion_r1557552244.
This commit is contained in:
@@ -207,7 +207,7 @@ static int vl_method_set_persistent_storage(Varlink *vlink, JsonVariant *paramet
|
||||
}
|
||||
|
||||
if (fstat(fd, &st) < 0)
|
||||
return log_warning_errno(r, "Failed to stat the passed persistent storage fd: %m");
|
||||
return log_warning_errno(errno, "Failed to stat the passed persistent storage fd: %m");
|
||||
|
||||
r = stat_verify_directory(&st);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user