Artifact 26afd39bf726804d7caff5f75dfed9b65c3c38f76c4fb00206eec1f2fa19de4b:
- File internal/runner/owner_unix.go — part of check-in [b9c9383786] at 2026-10-09 15:42:45 on branch runner-share-reuse — Runner: re-sharing a reused workspace leaves the job user's own files alone (user: zeitgeist, size: 304) [annotate] [blame] [check-ins using] [more...]
//go:build unix package runner import ( "io/fs" "syscall" ) // ownerOf is a file's owner and group, from the stat behind info. func ownerOf(info fs.FileInfo) (uid, gid int, ok bool) { st, ok := info.Sys().(*syscall.Stat_t) if !ok { return 0, 0, false } return int(st.Uid), int(st.Gid), true }