network: implement masking of .link, .network and .netdev files

This commit is contained in:
Tom Gundersen
2014-04-19 19:05:37 +02:00
parent a21df10488
commit 6916ec29af
3 changed files with 15 additions and 0 deletions
+5
View File
@@ -44,6 +44,11 @@ static int network_load_one(Manager *manager, const char *filename) {
return -errno;
}
if (null_or_empty_path(filename)) {
log_debug("skipping empty file: %s", filename);
return 0;
}
network = new0(Network, 1);
if (!network)
return log_oom();