Lines Matching refs:DIR_B
71 char DIR_A[MSGSIZE], DIR_B[MSGSIZE]; in main() local
91 sprintf(DIR_B, DIR_B_TEMP, mypid); in main()
94 sprintf(setgid_B, "%s/%s", DIR_B, SETGID); in main()
95 sprintf(nosetgid_B, "%s/%s", DIR_B, NOSETGID); in main()
96 sprintf(root_setgid_B, "%s/%s", DIR_B, ROOT_SETGID); in main()
160 if (mkdir(DIR_B, MODE_RWX) < 0) { in main()
161 tst_resm(TFAIL | TERRNO, "mkdir(%s) failed", DIR_B); in main()
165 if (chown(DIR_B, user1_uid, group2_gid) < 0) { in main()
166 tst_resm(TFAIL | TERRNO, "chown(%s) failed", DIR_B); in main()
170 if (chmod(DIR_B, MODE_SGID) < 0) { in main()
171 tst_resm(TFAIL | TERRNO, "chmod(%s) failed", DIR_B); in main()
175 if (stat(DIR_B, &buf) < 0) { in main()
176 tst_resm(TFAIL | TERRNO, "stat(%s) failed", DIR_B); in main()
184 DIR_B); in main()
191 DIR_B, buf.st_gid, group2_gid); in main()
434 if (rmdir(DIR_B) < 0) in main()
435 tst_resm(TWARN | TERRNO, "rmdir(%s) failed", DIR_B); in main()