add opendir alias
[minix.git] / test / t60a.c
blob812996b8769e9610b3a16aaed4ed21351ef85131
1 #include <unistd.h>
2 #include <stdlib.h>
3 #include <stdio.h>
5 int main(int argc, char *argv[])
7 /* Return our tainted state to the parent */
8 int newmode;
9 char cmd[30];
11 if (argc < 2) return(-2);
12 if ((newmode = atoi(argv[1])) > 0) {
13 snprintf(cmd, sizeof(cmd), "chmod %o %s", newmode, argv[0]);
14 system(cmd);
17 return(issetugid());