mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
fix(config): judge a grant against the home the package already resolves
The process-input gate counts a direct os.UserHomeDir call; folder grants now use the package's injectable osUserHomeDir like the other home lookups here.
This commit is contained in:
1 parent
c349bab79e
commit
f21a6d1791
1 file changed
+1
-1
@@ -150,7 +150,7 @@ func (r Roots) FolderGrantRefusal(dir string) (WorkspaceRootRefusal, bool) {
|
||||
if key == "." || filepath.Dir(key) == key {
|
||||
return RootTooBroad, true
|
||||
}
|
||||
if home, err := os.UserHomeDir(); err == nil && home != "" && keyWithin(rootKey(home), key) {
|
||||
if home, err := osUserHomeDir(); err == nil && home != "" && keyWithin(rootKey(home), key) {
|
||||
return RootTooBroad, true
|
||||
}
|
||||
var guarded []string
|
||||
|
||||
Reference in new issue
Block a user