mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
Merge pull request #32191 from yuwata/network-persistent-storage-follow-ups
network: follow-ups for persistent storage
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)
|
||||
|
||||
@@ -568,7 +568,7 @@ static int persistent_storage_open(void) {
|
||||
if (r <= 0)
|
||||
return -EBADF;
|
||||
|
||||
fd = open("/var/lib/systemd/network/", O_CLOEXEC | O_DIRECTORY | O_PATH);
|
||||
fd = open("/var/lib/systemd/network/", O_CLOEXEC | O_DIRECTORY);
|
||||
if (fd < 0)
|
||||
return log_debug_errno(errno, "Failed to open /var/lib/systemd/network/, ignoring: %m");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user