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.
commit0f92afdd6d4ead5abc929e6954350e684edbc843
authorJaakko Luttinen <jaakko.luttinen@iki.fi>
dateSun 22 Apr 2018, 22:43 (9 years ago)
parent6c064e6
pkgs/tools/backup/diskrsync/default.nix+1−1
@@ -19,7 +19,7 @@ buildGoPackage rec {
1919 buildInputs = [ makeWrapper ];
2020
2121 preFixup = ''
22− wrapProgram "$bin/bin/diskrsync" --prefix PATH : ${openssh}/bin
22+ wrapProgram "$bin/bin/diskrsync" --argv0 diskrsync --prefix PATH : ${openssh}/bin
2323 '';
2424
2525 meta = with stdenv.lib; {