| 666 | } |
| 667 | |
| 668 | static int h_monitor(int argc, unsigned char **argv){ |
| 669 | struct filemon * fm; |
| 670 | |
| 671 | fm = myalloc(sizeof (struct filemon)); |
| 672 | if(stat((char *)argv[1], &fm->sb)){ |
| 673 | myfree(fm); |
| 674 | fprintf(stderr, "Warning: file %s doesn't exist on line %d\n", argv[1], linenum); |
| 675 | } |
| 676 | else { |
| 677 | fm->path = mystrdup((char *)argv[1]); |
| 678 | fm->next = conf.fmon; |
| 679 | conf.fmon = fm; |
| 680 | } |
| 681 | return 0; |
| 682 | } |
| 683 | |
| 684 | static int h_parent(int argc, unsigned char **argv){ |
| 685 | struct ace *acl = NULL; |