2 Proprietary Rand Corporation
, 1981.
3 Further distribution of
this software
4 subject to the terms of the Rand
14 register int pid
, wpid
;
18 if((pid
= fork()) == 0) {
19 execl("/bin/mkdir", "mkdir", dir
, 0);
20 execl("/usr/bin/mkdir", "mkdir", dir
, 0);
21 fprintf(stderr
, "Can't exec mkdir!!?\n");
25 fprintf(stderr
, "Can't fork\n");
28 while((wpid
= wait(&status
)) != pid
&& wpid
!= -1) ;
30 fprintf(stderr
, "Bad exit status (%o) from mkdir.\n", status
);
33 if((c
= m_find("folder-protect")) == NULL
)
35 VOID
chmod(dir
, atooi(c
));