diff options
author | Tom Gundersen <teg@jklm.no> | 2014-04-19 19:05:37 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-04-19 19:05:37 +0200 |
commit | 6916ec29afd488d91e7e0fcbcc2e006b4e5f28df (patch) | |
tree | 88be41b927d6687ed86b7129d84a97a6a30a6c23 /src/network/networkd-network.c | |
parent | a21df104887552e8558d6c11388dff466641a031 (diff) |
network: implement masking of .link, .network and .netdev files
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r-- | src/network/networkd-network.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index 048017e229..4d01e55fee 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -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(); |