/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-prompt.c

  • Committer: Teddy Hogeborn
  • Date: 2009-01-10 06:23:04 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090110062304-wy7yw1pyuu5cldrg
* plugins.d/splashy.c (main): Do not abort if a process vanishes while
                              investigating it.
* plugins.d/usplash.c (main): - '' -  Also removed unnecessary code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  -*- coding: utf-8 -*- */
2
2
/*
3
 
 * Passprompt - Read a password from the terminal and print it
4
 
 *
5
 
 * Copyright © 2008 Teddy Hogeborn & Björn Påhlsson
 
3
 * Password-prompt - Read a password from the terminal and print it
 
4
 * 
 
5
 * Copyright © 2008,2009 Teddy Hogeborn
 
6
 * Copyright © 2008,2009 Björn Påhlsson
6
7
 * 
7
8
 * This program is free software: you can redistribute it and/or
8
9
 * modify it under the terms of the GNU General Public License as
78
79
        .doc = "Debug mode", .group = 3 },
79
80
      { .name = NULL }
80
81
    };
81
 
  
 
82
    
82
83
    error_t parse_opt (int key, char *arg, struct argp_state *state) {
83
84
      /* Get the INPUT argument from `argp_parse', which we know is a
84
85
         pointer to our plugin list pointer. */
99
100
      }
100
101
      return 0;
101
102
    }
102
 
  
 
103
    
103
104
    struct argp argp = { .options = options, .parser = parse_opt,
104
105
                         .args_doc = "",
105
106
                         .doc = "Mandos password-prompt -- Read and"
110
111
      return EXIT_FAILURE;
111
112
    }
112
113
  }
113
 
    
 
114
  
114
115
  if (debug){
115
116
    fprintf(stderr, "Starting %s\n", argv[0]);
116
117
  }
249
250
      fprintf(stderr, "getline() returned 0, retrying.\n");
250
251
    }
251
252
  }
252
 
 
 
253
  
253
254
  free(buffer);
254
255
  
255
256
  if (debug){