chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dhcp: Add test for DHCP client initialization and parameter setting
[elogind.git]
/
src
/
core
/
load-fragment.c
diff --git
a/src/core/load-fragment.c
b/src/core/load-fragment.c
index d43d1b4162731462fc4b08cec7227089d498308c..99cf20dcce86bf1a667df218a57556465e21fdef 100644
(file)
--- 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. */
/* 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 =
base
name(*filename);
if (unit_name_is_valid(name, true)) {
if (unit_name_is_valid(name, true)) {