rsync: add patch for CVE-2020-14387

(cherry picked from commit a08ee2292caa8a676332c695d7d46bd38c235931)
This commit is contained in:
Robert Scott
2021-08-19 19:24:10 +01:00
parent 74f8b36dee
commit 41a38db165
3 changed files with 16 additions and 6 deletions
@@ -1,7 +1,7 @@
{ lib, stdenv, fetchurl, perl, rsync }:
{ lib, stdenv, fetchurl, perl, rsync, fetchpatch }:
let
base = import ./base.nix { inherit lib fetchurl; };
base = import ./base.nix { inherit lib fetchurl fetchpatch; };
in
stdenv.mkDerivation {
name = "rrsync-${base.version}";
@@ -15,6 +15,8 @@ stdenv.mkDerivation {
dontConfigure = true;
dontBuild = true;
patches = base.extraPatches;
postPatch = ''
substituteInPlace support/rrsync --replace /usr/bin/rsync ${rsync}/bin/rsync
'';