From bdb2d3c6889408c7f26c2eeddbe9021ac53f962c Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Fri, 22 Apr 2022 12:33:15 +0900 Subject: udev: check stats of .link files and their drop-in files Fixes #23128. --- src/network/networkd-network.c | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'src/network/networkd-network.c') diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 291707cd93..c0b8e3893c 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -591,28 +591,6 @@ int network_load(Manager *manager, OrderedHashmap **networks) { return 0; } -static bool stats_by_path_equal(Hashmap *a, Hashmap *b) { - struct stat *st_a, *st_b; - const char *path; - - assert(a); - assert(b); - - if (hashmap_size(a) != hashmap_size(b)) - return false; - - HASHMAP_FOREACH_KEY(st_a, path, a) { - st_b = hashmap_get(b, path); - if (!st_b) - return false; - - if (!stat_inode_unmodified(st_a, st_b)) - return false; - } - - return true; -} - int network_reload(Manager *manager) { OrderedHashmap *new_networks = NULL; Network *n, *old; -- cgit v1.2.1