Merge pull request #32191 from yuwata/network-persistent-storage-follow-ups

network: follow-ups for persistent storage
This commit is contained in:
Yu Watanabe
2024-04-10 16:54:39 +09:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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)

View File

@@ -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");