From 6d310e237a1126bdfd7c2bcae9586995c3b534a7 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 16 Oct 2023 09:12:32 +0800 Subject: [PATCH] fix: older versions of `lsar` didn't have `jss` parameter, closes #202 --- core/src/external/lsar.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/external/lsar.rs b/core/src/external/lsar.rs index 3e015d78c..48eca6a97 100644 --- a/core/src/external/lsar.rs +++ b/core/src/external/lsar.rs @@ -32,9 +32,7 @@ pub struct LsarFile { #[allow(clippy::manual_map)] pub async fn lsar(path: &Path, skip: usize, limit: usize) -> Result, PeekError> { - let output = - Command::new("lsar").args(["-j", "-jss"]).arg(path).kill_on_drop(true).output().await?; - + let output = Command::new("lsar").arg("-j").arg(path).kill_on_drop(true).output().await?; if !output.status.success() { return Err(String::from_utf8_lossy(&output.stderr).to_string().into()); }