From aa5646ff3b45bb04fbc9b56c7e88263623308455 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 2 May 2011 14:55:16 +0000 Subject: [PATCH] * For some reason Samba insists on setting the g+w bit on newly created directories, which is a security risk. So create $out with the proper permissions before starting the VM. svn path=/nixpkgs/trunk/; revision=27095 --- pkgs/build-support/vm/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index cfd057110fe..a4a1c6c931c 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -274,6 +274,8 @@ rec { ${qemuCommand} EOF + mkdir -p -m 0700 $out + chmod +x ./run-vm source ./run-vm @@ -602,7 +604,7 @@ rec { installPhase = '' eval "$preInstall" - + ensureDir $out/$outDir find $rpmout -name "*.rpm" -exec cp {} $out/$outDir \;