From 2b6bf07dd23bb467099d213c97b3875c5e453491 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 6 Dec 2013 21:29:55 -0500 Subject: Get rid of our reimplementation of basename The only problem is that libgen.h #defines basename to point to it's own broken implementation instead of the GNU one. This can be fixed by #undefining basename. --- src/locale/localectl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/locale') diff --git a/src/locale/localectl.c b/src/locale/localectl.c index 76a53f6fff..b0abe7b051 100644 --- a/src/locale/localectl.c +++ b/src/locale/localectl.c @@ -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(); -- cgit v1.2.3-54-g00ecf