diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-06 21:29:55 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-06 21:29:55 -0500 |
commit | 2b6bf07dd23bb467099d213c97b3875c5e453491 (patch) | |
tree | 2127e24f28714b48f6c00e92eaec351bcb57e5d5 /src/core/load-fragment.c | |
parent | f4336098941f94d23f2f6c79bc8d055a0907c392 (diff) |
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/core/load-fragment.c')
-rw-r--r-- | src/core/load-fragment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index d43d1b4162..99cf20dcce 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -2431,7 +2431,7 @@ static int open_follow(char **filename, FILE **_f, Set *names, char **_final) { /* Add the file name we are currently looking at to * the names of this unit, but only if it is a valid * unit name. */ - name = path_get_file_name(*filename); + name = basename(*filename); if (unit_name_is_valid(name, true)) { |