From e5d3fd420ff355d8399de0df2f601772951c0e63 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 13 May 2018 12:52:26 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nix/recv.nix | 2 +- recv | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/recv.nix b/nix/recv.nix index 6704d41..d24d412 100644 --- a/nix/recv.nix +++ b/nix/recv.nix @@ -4,7 +4,7 @@ stdenv.mkDerivation rec { name = "recv-${version}"; - version = "0.2"; + version = "0.3"; src = ../recv; phases = [ "buildPhase" "installPhase" ]; diff --git a/recv b/recv index bc1f6a1..ed1e0ed 100644 --- a/recv +++ b/recv @@ -2,12 +2,12 @@ set -e -user="$0" +user="$1" [[ -n "$user" ]] || exit 2 recvDir="$(getent passwd "$user" | cut -f6 -d:)/uucppublic" [[ -d "$recvDir" ]] || exit 1 -umask 770 +umask 027 exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions \ No newline at end of file -- cgit v1.2.3