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
@@ -146,6 +146,11 @@ static int load_link(link_config_ctx *ctx, const char *filename) {
assert(ctx);
assert(filename);
if (null_or_empty_path(filename)) {
log_debug("skipping empty file: %s", filename);
return 0;
}
file = fopen(filename, "re");
if (!file) {
if (errno == ENOENT)