Commit 8951442c authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

sudo: backport fix for missing newlines

Pull upstream fix for https://bugzilla.sudo.ws/show_bug.cgi?id=1057.
Otherwise `sudo` breaks newlines for `stderr` as:

    $ { sudo printf "a\nb\nc\n" >&2; } |& nl
         1  a
                  2 b
                          3 c
parent 9f039b93
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -29,6 +29,12 @@ stdenv.mkDerivation rec {
      url = "https://github.com/sudo-project/sudo/commit/760c9c11074cb921ecc0da9fbb5f0a12afd46233.patch";
      hash = "sha256-smwyoYEkaqfQYz9C4VVz59YMtKabOPpwhS+RBwXbWuE=";
    })
    # Fix for the patch above:
    #   https://bugzilla.sudo.ws/show_bug.cgi?id=1057
    (fetchpatch {
      url = "https://github.com/sudo-project/sudo/commit/d148e7d8f9a98726dd4fde6f187c7d614e1258c7.patch";
      hash = "sha256-3I3PnuAHlBs3JOn0Ul900aFxuUkDGV4sM3S5DNtW7bE=";
    })
  ];

  prePatch = ''