From 0f92afdd6d4ead5abc929e6954350e684edbc843 Mon Sep 17 00:00:00 2001 From: Jaakko Luttinen Date: Sun, 22 Apr 2018 22:43:39 +0300 Subject: [PATCH] diskrsync: fix argv0 When using diskrsync over SSH, on the remote machine it calls an executable equal to argv0. Typically, this is just diskrsync but now that diskrsync is wrapped, the wrapper uses absolute path to diskrsync and that path doesn't most likely work on the remote machine. Thus, we need to force argv0 to "diskrsync" so that it works on the remote machine. --- pkgs/tools/backup/diskrsync/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/backup/diskrsync/default.nix b/pkgs/tools/backup/diskrsync/default.nix index 2e86ad0deda..3a5ffc30f8f 100644 --- a/pkgs/tools/backup/diskrsync/default.nix +++ b/pkgs/tools/backup/diskrsync/default.nix @@ -19,7 +19,7 @@ buildGoPackage rec { buildInputs = [ makeWrapper ]; preFixup = '' - wrapProgram "$bin/bin/diskrsync" --prefix PATH : ${openssh}/bin + wrapProgram "$bin/bin/diskrsync" --argv0 diskrsync --prefix PATH : ${openssh}/bin ''; meta = with stdenv.lib; {