]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: remove a weird assertion from network_load_one
authorEvgeny Vereshchagin <evvers@ya.ru>
Sun, 4 Nov 2018 20:49:09 +0000 (21:49 +0100)
committerEvgeny Vereshchagin <evvers@ya.ru>
Tue, 6 Nov 2018 18:01:32 +0000 (19:01 +0100)
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

index 1890021f5119ea493071f2151a19b48276672c1d..d6d59bab43f9fd02cbab6476c521c17730da092e 100644 (file)
@@ -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;