projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e203f7c
)
unit-name: when escaping a path consider the empty path identical to the root dir
author
Lennart Poettering
<lennart@poettering.net>
Thu, 26 Sep 2013 18:03:20 +0000
(20:03 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 26 Sep 2013 18:20:30 +0000
(20:20 +0200)
src/shared/unit-name.c
patch
|
blob
|
history
diff --git
a/src/shared/unit-name.c
b/src/shared/unit-name.c
index
8f6c28e
..
bc8094d
100644
(file)
--- a/
src/shared/unit-name.c
+++ b/
src/shared/unit-name.c
@@
-301,7
+301,7
@@
char *unit_name_path_escape(const char *f) {
path_kill_slashes(p);
- if (streq(p, "/")) {
+ if (streq(p, "/")
|| streq(p, "")
) {
free(p);
return strdup("-");
}