9 int main(int argc, const char *argv[])
17 printf("id_create <name> <uid>\n");
24 if (seteuid(id) != 0) {
31 fprintf(stderr, "geteuid gave wrong id (%d)", id2);
37 fd = open(name, O_CREAT|O_EXCL|O_RDWR, 0644);
45 if (st.st_uid != id) {
46 printf("Created with wrong uid (%d should be %d)!\n",