diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-22 12:33:15 +0900 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2022-05-03 10:26:22 +0200 |
commit | bdb2d3c6889408c7f26c2eeddbe9021ac53f962c (patch) | |
tree | b7fde0f15e2665ed9f195aa9f5e50239365f76f0 /src/network/networkd-network.c | |
parent | 968680b23d1629d33deeea98b4f2b5fd106075b5 (diff) | |
download | systemd-bdb2d3c6889408c7f26c2eeddbe9021ac53f962c.tar.gz |
udev: check stats of .link files and their drop-in files
Fixes #23128.
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r-- | src/network/networkd-network.c | 22 |
1 files changed, 0 insertions, 22 deletions
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; |