From fd49025d7d383a8335acf8ed2d3c5d544337c337 Mon Sep 17 00:00:00 2001 From: yjl9903 Date: Fri, 6 Oct 2023 14:45:43 +0800 Subject: [PATCH] fix: nobody group not exist --- src/context/builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/builder.rs b/src/context/builder.rs index 1437886..61abbfc 100644 --- a/src/context/builder.rs +++ b/src/context/builder.rs @@ -390,7 +390,7 @@ impl CatBoxOption { let cgroup = env::var("CATJ_CGROUP").unwrap_or(current_user.name); let catbox_user = User::from_name("nobody").unwrap().unwrap(); - let catbox_group = Group::from_name("nogroup").unwrap().unwrap(); + let catbox_group = Group::from_gid(catbox_user.gid).unwrap().unwrap(); CatBoxOption { label: "catbox".to_string(),