summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorMathijs Kwik <mathijs@bluescreen303.nl>2013-01-01 14:42:43 +0100
committerMathijs Kwik <mathijs@bluescreen303.nl>2013-01-01 14:53:54 +0100
commitebf48167174a2f3d80560f9a55750e7f304499a2 (patch)
tree37c4f1e0344298d4d0f8f43c2f6925cfa9a7c66e /lib
parent16a9bcfe815a9fe72c41348b4231c619e11da610 (diff)
downloadnixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar
nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar.gz
nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar.bz2
nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar.lz
nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar.xz
nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.tar.zst
nixlib-ebf48167174a2f3d80560f9a55750e7f304499a2.zip
systemd mount units: use 'escapeSystemdPath' from lib/utils
Diffstat (limited to 'lib')
-rw-r--r--lib/utils.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utils.nix b/lib/utils.nix
index b75e063eaa92..35c56e8c32bb 100644
--- a/lib/utils.nix
+++ b/lib/utils.nix
@@ -5,6 +5,6 @@ rec {
   # Escape a path according to the systemd rules, e.g. /dev/xyzzy
   # becomes dev-xyzzy.  FIXME: slow.
   escapeSystemdPath = s:
-   replaceChars ["/" "-"] ["-" "\\x2d"] (substring 1 (stringLength s) s);
+   replaceChars ["/" "-" " "] ["-" "\\x2d" "\\x20"] (substring 1 (stringLength s) s);
 
 }