From d4a69b433c41b46c2a1ed6e4955141bb6d3fe811 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 8 May 2024 12:58:20 +0100 Subject: [PATCH] radicle: Fix file limit setting for FreeBSD On FreeBSD systems, the file limits are of type `i64` in comparison to `u64` on Linux systems. Also fix `rad web` command name on Windows and FreeBSD. Co-authored-by: cloudhead Co-authored-by: Shawn Webb --- radicle-httpd/src/commands/web.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radicle-httpd/src/commands/web.rs b/radicle-httpd/src/commands/web.rs index 3229ebf5a..866f9d653 100644 --- a/radicle-httpd/src/commands/web.rs +++ b/radicle-httpd/src/commands/web.rs @@ -192,6 +192,8 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> { } if options.open { + #[cfg(any(target_os = "freebsd", target_os = "windows"))] + let cmd_name = "echo"; #[cfg(target_os = "macos")] let cmd_name = "open"; #[cfg(target_os = "linux")]