/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 plugins.d/password-request.c

  • Committer: Teddy Hogeborn
  • Date: 2008-08-11 08:04:35 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080811080435-7qfkwv5g43ww5h9x
* plugins.d/password-request.c (main): Bug fix: Bring up network
                                       interface *before* dropping
                                       privileges.

Show diffs side-by-side

added added

removed removed

Lines of Context:
865
865
                           " passwords from mandos server" };
866
866
      ret = argp_parse (&argp, argc, argv, 0, 0, NULL);
867
867
      if (ret == ARGP_ERR_UNKNOWN){
868
 
        fprintf(stderr, "Unknown error while parsing arguments\n");
 
868
        fprintf(stderr, "Unkown error while parsing arguments\n");
869
869
        exitcode = EXIT_FAILURE;
870
870
        goto end;
871
871
      }
881
881
    seckeyfile = combinepath(keydir, seckeyfile);
882
882
    if (seckeyfile == NULL){
883
883
      perror("combinepath");
884
 
      exitcode = EXIT_FAILURE;
885
884
      goto end;
886
885
    }
887
886
 
888
887
    ret = init_gnutls_global(&mc, pubkeyfile, seckeyfile);
889
888
    if (ret == -1){
890
 
      fprintf(stderr, "init_gnutls_global failed\n");
891
 
      exitcode = EXIT_FAILURE;
 
889
      fprintf(stderr, "init_gnutls_global\n");
892
890
      goto end;
893
891
    } else {
894
892
      gnutls_initalized = true;