From 7faca7cbbf6b2162da9e189a35acbec423018941 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Thu, 16 May 2024 16:28:39 +0200 Subject: [PATCH] Prevent escaping the `rclone` mount path --- lib/modules/rclone.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/rclone.nix b/lib/modules/rclone.nix index 7591dba..ee8e1dd 100644 --- a/lib/modules/rclone.nix +++ b/lib/modules/rclone.nix @@ -377,9 +377,9 @@ in { (lib.generators.toINI { } { ${name} = sync.config; }); script = pkgs.writeShellScriptBin serviceName '' ${sync.secretsScript} - mkdir -p ${lib.escapeShellArg sync.path} + mkdir -p ${sync.path} mkdir -p /tmp/rclone - ${lib.getExe pkgs.rclone} mount --config ${configFile} ${name}: ${lib.escapeShellArg sync.path} + ${lib.getExe pkgs.rclone} mount --config ${configFile} ${name}: ${sync.path} ''; in (lib.getExe script);