跳到主要内容

Claude Cage · 面向 Claude 的隔离开发环境,支持桌面工作台、多账号、远程部署与移动端连接。上游 Lee-xeo/Claude-Cage 完整源码镜像,非灵栈原创;主许可 MIT,第三方组件遵循各自许可。来源:https://github.com/Lee-xeo/Claude-Cage 。手动同步,不附带 Release 安装包。

浏览文件

request-unix.go

24 行 · 414 B历史下载
1//go:build !windows && !plan9
2// +build !windows,!plan9
3
4package sftp
5
6import (
7 "errors"
8 "syscall"
9)
10
11func fakeFileInfoSys() any {
12 return &syscall.Stat_t{Uid: 65534, Gid: 65534}
13}
14
15func testOsSys(sys any) error {
16 fstat := sys.(*FileStat)
17 if fstat.UID != uint32(65534) {
18 return errors.New("Uid failed to match")
19 }
20 if fstat.GID != uint32(65534) {
21 return errors.New("Gid failed to match")
22 }
23 return nil
24}