summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@viric.name>2013-08-24 23:23:25 +0200
committerLluís Batlle i Rossell <viric@viric.name>2013-08-24 23:23:48 +0200
commit48cdd60e02e33a6eeabaa002e1ac269ed9a2b83e (patch)
tree2c390221f2b5dd324c34a8dfc5fb7e1ad5b60eea /modules
parent9771f0c96c87cf03519033df408ca309696a9469 (diff)
downloadnixlib-48cdd60e02e33a6eeabaa002e1ac269ed9a2b83e.tar
nixlib-48cdd60e02e33a6eeabaa002e1ac269ed9a2b83e.tar.gz
nixlib-48cdd60e02e33a6eeabaa002e1ac269ed9a2b83e.tar.bz2
nixlib-48cdd60e02e33a6eeabaa002e1ac269ed9a2b83e.tar.lz
nixlib-48cdd60e02e33a6eeabaa002e1ac269ed9a2b83e.tar.xz
nixlib-48cdd60e02e33a6eeabaa002e1ac269ed9a2b83e.tar.zst
nixlib-48cdd60e02e33a6eeabaa002e1ac269ed9a2b83e.zip
Fixing handling of parameters with spaces in torsocks/torify
Diffstat (limited to 'modules')
-rw-r--r--modules/services/security/torify.nix4
-rw-r--r--modules/services/security/torsocks.nix2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/services/security/torify.nix b/modules/services/security/torify.nix
index b91d7d58505c..1c158906a911 100644
--- a/modules/services/security/torify.nix
+++ b/modules/services/security/torify.nix
@@ -8,7 +8,7 @@ let
     name = "torify";
     text = ''
         #!${pkgs.stdenv.shell}
-        TSOCKS_CONF_FILE=${pkgs.writeText "tsocks.conf" cfg.torify.config} LD_PRELOAD="${pkgs.tsocks}/lib/libtsocks.so $LD_PRELOAD" $@
+        TSOCKS_CONF_FILE=${pkgs.writeText "tsocks.conf" cfg.torify.config} LD_PRELOAD="${pkgs.tsocks}/lib/libtsocks.so $LD_PRELOAD" "$@"
     '';
     executable = true;
     destination = "/bin/torify";
@@ -66,4 +66,4 @@ in
     '';
   };
 
-}
\ No newline at end of file
+}
diff --git a/modules/services/security/torsocks.nix b/modules/services/security/torsocks.nix
index 8c2015e37c1e..d6974282a6b5 100644
--- a/modules/services/security/torsocks.nix
+++ b/modules/services/security/torsocks.nix
@@ -20,7 +20,7 @@ let
     name = name;
     text = ''
         #!${pkgs.stdenv.shell}
-        TORSOCKS_CONF_FILE=${pkgs.writeText "torsocks.conf" (makeConfig server)} LD_PRELOAD="${pkgs.torsocks}/lib/torsocks/libtorsocks.so $LD_PRELOAD" $@
+        TORSOCKS_CONF_FILE=${pkgs.writeText "torsocks.conf" (makeConfig server)} LD_PRELOAD="${pkgs.torsocks}/lib/torsocks/libtorsocks.so $LD_PRELOAD" "$@"
     '';
     executable = true;
     destination = "/bin/${name}";