From 21b3049216906755f7fc1b6e2d1ccb2394330014 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 4 May 2016 16:01:10 +0200 Subject: patch uucp --- custom/uucp.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'custom/uucp.nix') diff --git a/custom/uucp.nix b/custom/uucp.nix index 86a2078b..e914cf5c 100644 --- a/custom/uucp.nix +++ b/custom/uucp.nix @@ -191,6 +191,26 @@ in { nixpkgs.config.packageOverrides = pkgs: with pkgs; { uucp = stdenv.lib.overrideDerivation uucp (oldAttrs: { configureFlags = "--with-newconfigdir=/etc/uucp"; + patches = [ + (pkgs.writeText "mailprogram" '' + policy.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + + diff --git a/policy.h b/policy.h + index 5afe34b..8e92c8b 100644 + --- a/policy.h + +++ b/policy.h + @@ -240,7 +240,7 @@ + the sendmail choice below. Otherwise, select one of the other + choices as appropriate. */ + #if 1 + -#define MAIL_PROGRAM "/usr/lib/sendmail -t" + +#define MAIL_PROGRAM "/var/setuid-wrapper/sendmail -t" + /* #define MAIL_PROGRAM "/usr/sbin/sendmail -t" */ + #define MAIL_PROGRAM_TO_BODY 1 + #define MAIL_PROGRAM_SUBJECT_BODY 1 + '') + ]; }); rmail = pkgs.writeScriptBin "rmail" '' #!${pkgs.stdenv.shell} -- cgit v1.2.3