diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-16 23:24:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-16 23:24:39 +0200 |
commit | 8d567588cad053f79abe603ab113e1b85a92f1da (patch) | |
tree | d29f8cbd6233fac569b84774d7a72a5fd8049b29 /unit-name.c | |
parent | 2076ca540e4ffdd320e086c8b570a5bf19546022 (diff) |
automount: implement automount unit type
Diffstat (limited to 'unit-name.c')
-rw-r--r-- | unit-name.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/unit-name.c b/unit-name.c index eb2f704e2f..5053d30f29 100644 --- a/unit-name.c +++ b/unit-name.c @@ -207,8 +207,8 @@ static char* do_escape(const char *f, char *t) { for (; *f; f++) { if (*f == '/') - *(t++) = '.'; - else if (*f == '.' || *f == '\\' || !strchr(VALID_CHARS, *f)) { + *(t++) = '-'; + else if (*f == '-' || *f == '\\' || !strchr(VALID_CHARS, *f)) { *(t++) = '\\'; *(t++) = 'x'; *(t++) = hexchar(*f > 4); @@ -286,7 +286,7 @@ char *unit_name_unescape(const char *f) { return NULL; for (t = r; *f; f++) { - if (*f == '.') + if (*f == '-') *(t++) = '/'; else if (*f == '\\') { int a, b; |