From 9667d5ec5acc10ca20c3a560a8d290f7b9186bbf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 21 Oct 2011 23:36:48 +0000 Subject: [PATCH] * Samba: Apply a patch that fixes readlink() on symlinks that point outside of the share. This is necessary for EC2 image generation (and similar actions). Many thanks to Jeremy Allison to fixing this very quickly. (https://bugzilla.samba.org/show_bug.cgi?id=8541) svn path=/nixpkgs/trunk/; revision=29969 --- pkgs/servers/samba/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/servers/samba/default.nix b/pkgs/servers/samba/default.nix index 280122a9d001..9cb27b23faa8 100644 --- a/pkgs/servers/samba/default.nix +++ b/pkgs/servers/samba/default.nix @@ -28,6 +28,14 @@ stdenv.mkDerivation rec { sha256 = "0r6mbghja357xhpada5djg0gpczi50f18ap53hdn8b7y0amz5c65"; }; + patches = + [ # Fix for https://bugzilla.samba.org/show_bug.cgi?id=8541. + (fetchurl { + url = https://attachments.samba.org/attachment.cgi?id=7018; + sha256 = "1fmq0dx7r09pf6gdw1bcigmnx36yb80xcrh7jv0yv9m1w8m3l2w9"; + }) + ]; + buildInputs = [ readline pam openldap popt iniparser libunwind fam acl cups ] ++ stdenv.lib.optional useKerberos kerberos;