Lines Matching refs:Uid
24 func checkUidGid(t *testing.T, path string, uid, gid int) {
27 t.Fatalf("Lstat %q (looking for uid/gid %d/%d): %s", path, uid, gid, err)
30 if int(sys.Uid) != uid {
31 t.Errorf("Lstat %q: uid %d want %d", path, sys.Uid, uid)
56 // Can't change uid unless root, but can try
64 checkUidGid(t, f.Name(), int(sys.Uid), gid)
76 checkUidGid(t, f.Name(), int(sys.Uid), g)
82 checkUidGid(t, f.Name(), int(sys.Uid), gid)
103 // Can't change uid unless root, but can try
111 checkUidGid(t, f.Name(), int(sys.Uid), gid)
123 checkUidGid(t, f.Name(), int(sys.Uid), g)
129 checkUidGid(t, f.Name(), int(sys.Uid), gid)
159 // Can't change uid unless root, but can try
167 checkUidGid(t, linkname, int(sys.Uid), gid)
179 checkUidGid(t, linkname, int(sys.Uid), g)
182 checkUidGid(t, f.Name(), int(sys.Uid), int(sys.Gid))