escape $ in pseudofile
this is needed to write /etc/passwd when it contains $5$.... strings
This commit is contained in:
parent
38756af1c1
commit
25a46dcb2c
1 changed files with 2 additions and 1 deletions
|
@ -6,7 +6,8 @@ let
|
|||
inherit (lib.attrsets) mapAttrsToList;
|
||||
visit = prefix: attrset:
|
||||
let
|
||||
qprint = msg : builtins.replaceStrings ["\n" "=" "\""] ["=0A" "=3D" "=22"] msg;
|
||||
qprint = msg : builtins.replaceStrings
|
||||
["\n" "=" "\"" "$"] ["=0A" "=3D" "=22" "=24"] msg;
|
||||
l =
|
||||
mapAttrsToList
|
||||
(filename: attrs:
|
||||
|
|
Loading…
Reference in a new issue