network/lldp: do not save LLDP neighbors under /run/systemd

Now LLDP neighbors are exposed through varlink. Hence, it is not
necessary to save to a file.
This commit is contained in:
Yu Watanabe
2024-03-01 09:40:26 +09:00
parent 14a5c07afa
commit 5a0f6adbb2
7 changed files with 2 additions and 82 deletions
+1 -2
View File
@@ -72,8 +72,7 @@ static int run(int argc, char *argv[]) {
* to support old kernels not supporting AmbientCapabilities=. */
FOREACH_STRING(p,
"/run/systemd/netif/links/",
"/run/systemd/netif/leases/",
"/run/systemd/netif/lldp/") {
"/run/systemd/netif/leases/") {
r = mkdir_safe_label(p, 0755, UID_INVALID, GID_INVALID, MKDIR_WARN_MODE);
if (r < 0)
log_warning_errno(r, "Could not create directory '%s': %m", p);