From dd5d43442cb2f525e008cd6a9c37aeee13c191ca Mon Sep 17 00:00:00 2001 From: yxd92326 Date: Fri, 28 Nov 2025 17:05:35 +0000 Subject: [PATCH 1/2] For eer make same gains with .mrc and .gain suffix --- src/murfey/server/gain.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/murfey/server/gain.py b/src/murfey/server/gain.py index 1153b70fe..33944c4d5 100644 --- a/src/murfey/server/gain.py +++ b/src/murfey/server/gain.py @@ -3,6 +3,7 @@ import asyncio import logging import os +import shutil from enum import Enum from pathlib import Path from typing import Dict, Tuple @@ -130,4 +131,6 @@ async def prepare_eer_gain( f"{stderr.decode('utf-8').strip()}" ) return None, None + # Also copy the gain as a .gain file + shutil.copy(gain_path, gain_out.with_suffix(".gain")) return gain_out, None From 9ea7241dfc47299b353742c63e5bfbd9bea39378 Mon Sep 17 00:00:00 2001 From: yxd92326 Date: Fri, 28 Nov 2025 17:09:04 +0000 Subject: [PATCH 2/2] Sanitise the paths --- src/murfey/server/gain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/murfey/server/gain.py b/src/murfey/server/gain.py index 33944c4d5..efdc5eba8 100644 --- a/src/murfey/server/gain.py +++ b/src/murfey/server/gain.py @@ -132,5 +132,5 @@ async def prepare_eer_gain( ) return None, None # Also copy the gain as a .gain file - shutil.copy(gain_path, gain_out.with_suffix(".gain")) + shutil.copy(secure_path(gain_path), secure_path(gain_out.with_suffix(".gain"))) return gain_out, None