From 8d567588cad053f79abe603ab113e1b85a92f1da Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 16 Apr 2010 23:24:39 +0200 Subject: automount: implement automount unit type --- unit-name.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'unit-name.c') 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; -- cgit v1.2.3-54-g00ecf