/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos-client.c

mandos-client
        Better error handling for failing to start plugins
        Handle fork errors
password-request
        correct exit routine

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
#define BUFFER_SIZE 256
68
68
 
69
 
const char *argp_program_version = "plugin-runner 1.0";
 
69
const char *argp_program_version = "mandos-client 1.0";
70
70
const char *argp_program_bug_address = "<mandos@fukt.bsnet.se>";
71
71
 
72
72
struct process;
186
186
}
187
187
 
188
188
int main(int argc, char *argv[]){
189
 
  const char *plugindir = "/lib/mandos/plugins.d";
 
189
  const char *plugindir = "/conf/conf.d/mandos/plugins.d";
190
190
  size_t d_name_len;
191
191
  DIR *dir = NULL;
192
192
  struct dirent *dirst;
203
203
  char *plus_options = NULL;
204
204
  char **plus_argv = NULL;
205
205
 
 
206
  errno = 0;
 
207
  
206
208
  /* Establish a signal handler */
207
209
  sigemptyset(&sigchld_action.sa_mask);
208
210
  ret = sigaddset(&sigchld_action.sa_mask, SIGCHLD);