chiark / gitweb /
networkd: link - only save original MTU when necessary
[elogind.git] / src / locale / localectl.c
index 76a53f6fff1e7c532c229505f0f03f6c45c6a057..b0abe7b0513a62813e5861aacd45dd03040898c1 100644 (file)
@@ -415,7 +415,7 @@ static int nftw_cb(
             !endswith(fpath, ".map.gz"))
                 return 0;
 
-        p = strdup(path_get_file_name(fpath));
+        p = strdup(basename(fpath));
         if (!p)
                 return log_oom();