From 0621f03b133ef90b8df28046cae7dcbdc2a97eba Mon Sep 17 00:00:00 2001 From: Evgeny Vereshchagin Date: Sun, 4 Nov 2018 21:49:09 +0100 Subject: [PATCH] networkd: remove a weird assertion from network_load_one The assertion was added in dbffab87f1504abc9f but I'm not exactly sure why. Now it just crashes a fuzzer I wrote. I, of course, could fix the fuzzer so that it would generate names ending in ".network" if anyone would tell me why the assertion should be kept here. --- src/network/networkd-network.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 1890021f51..d6d59bab43 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -181,8 +181,6 @@ static int network_load_one(Manager *manager, const char *filename) { if (!d) return -EINVAL; - assert(streq(d, ".network")); - *d = '\0'; network->required_for_online = true;