Skip to content

Commit 07479f0

Browse files
committed
Nix 多用户版时确保 root 权限
[GitHub #337]
1 parent 0038d6f commit 07479f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/recipe/ware/Nix.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ wr_nix_prelude ()
2828
chef_prep_this (wr_nix, s);
2929

3030
chef_set_recipe_created_on (this, "2023-09-26");
31-
chef_set_recipe_last_updated (this, "2026-02-24");
31+
chef_set_recipe_last_updated (this, "2026-03-25");
3232
chef_set_sources_last_updated (this, "2025-07-13");
3333

3434
chef_set_chef (this, NULL);
@@ -91,6 +91,8 @@ wr_nix_setsrc (char *option)
9191
if (wr_nix_is_multi_user_installation_mode ())
9292
{
9393
config_file = system_scope_nix_config;
94+
// https://github.com/RubyMetric/chsrc/issues/337#issuecomment-3979352975
95+
chsrc_ensure_root ();
9496
}
9597
else
9698
{

0 commit comments

Comments
 (0)