/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-10 17:21:36 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090910172136-plhvv6jjz8bjrhz4
* plugins.d/mandos-client.c (init_gnutls_session): Retry interrupted
                                                   GnuTLS functions.
  (main): Drop privileges early, and raise them only where needed and
          lower them whenever possible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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;