| 671 | } |
| 672 | |
| 673 | static void |
| 674 | read_sysconf(void) |
| 675 | { |
| 676 | #ifdef SYSCF |
| 677 | /* someday there may be other SYSCF alternatives besides text file */ |
| 678 | #ifdef SYSCF_FILE |
| 679 | /* If SYSCF_FILE is specified, it _must_ exist... */ |
| 680 | assure_syscf_file(); |
| 681 | config_error_init(TRUE, SYSCF_FILE, FALSE); |
| 682 | if (!read_config_file(SYSCF_FILE, set_in_sysconf)) { |
| 683 | if (config_error_done() && !iflags.initoptions_noterminate) |
| 684 | nh_terminate(EXIT_FAILURE); |
| 685 | } |
| 686 | config_error_done(); |
| 687 | /* |
| 688 | * TODO [maybe]: parse the sysopt entries which are space-separated |
| 689 | * lists of usernames into arrays with one name per element. |
| 690 | */ |
| 691 | #endif |
| 692 | #endif /* SYSCF */ |
| 693 | } |
| 694 | |
| 695 | /* provided for linkage only */ |
| 696 |
no test coverage detected