From c22767540ef86b84b1e2d9f58c93346383aed738 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 5 Apr 2024 16:42:55 +0200 Subject: [PATCH] uspot: auto delete radius files from /tmp Fixes: WIFI-13547 Signed-off-by: John Crispin --- feeds/ucentral/uspot/files/usr/share/uspot/portal.uc | 3 +-- feeds/ucentral/uspot/files/usr/share/uspot/uspot.uc | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/feeds/ucentral/uspot/files/usr/share/uspot/portal.uc b/feeds/ucentral/uspot/files/usr/share/uspot/portal.uc index c693b0348..98f6099b3 100644 --- a/feeds/ucentral/uspot/files/usr/share/uspot/portal.uc +++ b/feeds/ucentral/uspot/files/usr/share/uspot/portal.uc @@ -221,8 +221,7 @@ return { let reply = this.fs_popen('/usr/bin/radius-client ' + path); - if (!+config.def_captive.debug) - fs.unlink(path); + fs.unlink(path); return reply; }, diff --git a/feeds/ucentral/uspot/files/usr/share/uspot/uspot.uc b/feeds/ucentral/uspot/files/usr/share/uspot/uspot.uc index 17badfbf1..4953310a9 100755 --- a/feeds/ucentral/uspot/files/usr/share/uspot/uspot.uc +++ b/feeds/ucentral/uspot/files/usr/share/uspot/uspot.uc @@ -76,8 +76,7 @@ function radius_call(interface, mac, payload) { system('/usr/bin/radius-client ' + path); - if (!+interfaces[interface].settings.debug) - fs.unlink(path); + fs.unlink(path); } // RADIUS Acct-Status-Type attributes