chiark / gitweb /
network: implement masking of .link, .network and .netdev files
[elogind.git] / src / udev / net / link-config.c
index 8215c40d5d2cd9730353f0c61cb50dcd2b05d231..345a380d8526ccab5d29c050bcce20040d26c4ae 100644 (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)