From 6916ec29afd488d91e7e0fcbcc2e006b4e5f28df Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Sat, 19 Apr 2014 19:05:37 +0200 Subject: network: implement masking of .link, .network and .netdev files --- src/udev/net/link-config.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/udev/net') diff --git a/src/udev/net/link-config.c b/src/udev/net/link-config.c index 8215c40d5d..345a380d85 100644 --- a/src/udev/net/link-config.c +++ b/src/udev/net/link-config.c @@ -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) -- cgit v1.2.3-54-g00ecf