summaryrefslogtreecommitdiff
path: root/src/Propellor
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor')
-rw-r--r--src/Propellor/Property/Systemd.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Propellor/Property/Systemd.hs b/src/Propellor/Property/Systemd.hs
index b983d9d8..0d6dd097 100644
--- a/src/Propellor/Property/Systemd.hs
+++ b/src/Propellor/Property/Systemd.hs
@@ -472,5 +472,5 @@ escapePath = concatMap escape
where
escape '/' = "-"
escape c
- | (isAscii c || c == '_') = [c]
+ | ((isAscii c && isAlphaNum c) || c == '_') = [c]
| otherwise = '\\' : printf "%x" c