Branch: refs/heads/master
  Home:   https://github.com/NixOS/nixpkgs
  Commit: da33c8a19d97711d213789cf49c8b7c483beb18f
      
https://github.com/NixOS/nixpkgs/commit/da33c8a19d97711d213789cf49c8b7c483beb18f
  Author: Kevin Cox <[email protected]>
  Date:   2017-02-20 (Mon, 20 Feb 2017)

  Changed paths:
    M nixos/modules/system/boot/systemd.nix

  Log Message:
  -----------
  systemd: Properly escape environment options.

Using toJSON on a string value works because the allowed JSON escape
sequences is almost a subset of the systemd allowed escape sequences.
The only exception is `\/` which JSON allows but systemd doesn't.
Luckily this sequence isn't required and toJSON don't produce it making
the result valid for systemd consumption.

Examples of things that this fixes are environment variables with double
quotes or newlines.


_______________________________________________
nix-commits mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to