summaryrefslogtreecommitdiffstats
path: root/src/locale/localectl.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-07 03:29:55 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-07 03:29:55 +0100
commit2b6bf07dd23bb467099d213c97b3875c5e453491 (patch)
tree2127e24f28714b48f6c00e92eaec351bcb57e5d5 /src/locale/localectl.c
parentsystemctl: check the value from start_unit_one (diff)
downloadsystemd-2b6bf07dd23bb467099d213c97b3875c5e453491.tar.xz
systemd-2b6bf07dd23bb467099d213c97b3875c5e453491.zip
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.
Diffstat (limited to 'src/locale/localectl.c')
-rw-r--r--src/locale/localectl.c2
1 files changed, 1 insertions, 1 deletions
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();