/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-09-07 23:48:17 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090907234817-op1lgg9gpruejsiv
* initramfs-tools-hook: Bug fix: Really install user-supplied plugins.
                        Bug fix: Warn about empty plugin directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include <errno.h>              /* errno, EINVAL */
45
45
#include <iso646.h>             /* or, not */
46
46
#include <stdbool.h>            /* bool, false, true */
47
 
#include <string.h>             /* strlen, rindex */
 
47
#include <string.h>             /* strlen, rindex, strncmp, strcmp */
48
48
#include <argp.h>               /* struct argp_option, struct
49
49
                                   argp_state, struct argp,
50
50
                                   argp_parse(), error_t,
190
190
  }
191
191
  
192
192
  t_new = t_old;
193
 
  t_new.c_lflag &= ~(tcflag_t)ECHO;
 
193
  t_new.c_lflag &= ~ECHO;
194
194
  if(tcsetattr(STDIN_FILENO, TCSAFLUSH, &t_new) != 0){
195
195
    perror("tcsetattr-echo");
196
196
    return EXIT_FAILURE;