network: implement masking of .link, .network and .netdev files
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user