8 char testfilename
[] = "__TEST__";
14 fd
= creat(testfilename
, 0700);
18 TEST((stat(testfilename
, &buf
) != -1));
19 printf("owner %d group %d\n", (int)buf
.st_uid
, (int)buf
.st_gid
);
21 TEST((chown(testfilename
, 1000, 1001) != -1));
22 TEST((stat(testfilename
, &buf
) != -1));
23 printf("owner %d group %d\n", (int)buf
.st_uid
, (int)buf
.st_gid
);
25 TEST((chown(testfilename
, 1001, 1000) != -1));
26 TEST((stat(testfilename
, &buf
) != -1));
27 printf("owner %d group %d\n", (int)buf
.st_uid
, (int)buf
.st_gid
);