summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nix/recv.nix2
-rw-r--r--recv7
2 files changed, 6 insertions, 3 deletions
diff --git a/nix/recv.nix b/nix/recv.nix
index d24d412..1634b61 100644
--- a/nix/recv.nix
+++ b/nix/recv.nix
@@ -4,7 +4,7 @@
4 4
5stdenv.mkDerivation rec { 5stdenv.mkDerivation rec {
6 name = "recv-${version}"; 6 name = "recv-${version}";
7 version = "0.3"; 7 version = "0.4";
8 src = ../recv; 8 src = ../recv;
9 9
10 phases = [ "buildPhase" "installPhase" ]; 10 phases = [ "buildPhase" "installPhase" ];
diff --git a/recv b/recv
index ed1e0ed..1230ae0 100644
--- a/recv
+++ b/recv
@@ -8,6 +8,9 @@ user="$1"
8recvDir="$(getent passwd "$user" | cut -f6 -d:)/uucppublic" 8recvDir="$(getent passwd "$user" | cut -f6 -d:)/uucppublic"
9[[ -d "$recvDir" ]] || exit 1 9[[ -d "$recvDir" ]] || exit 1
10 10
11umask 027 11recvDir=$(mktemp -d -p "$recvDir" recv.XXXXXXXXXX)
12chown "$user" "$recvDir"
13chmod 750 "$recvDir"
12 14
13exec @gnutar@/bin/tar -xv -C $(mktemp -d -p "$recvDir" recv.XXXXXXXXXX) --owner "$user" --no-same-permissions \ No newline at end of file 15umask 027
16exec @gnutar@/bin/tar -xv -C "$recvDir" --owner "$user" --no-same-permissions \ No newline at end of file