/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-05 01:05:25 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090905010525-7qeq05ztwc2ddhuv
* plugins.d/mandos-client.c (main): Do not handle ignored signals.
                                    Bug fix: remove signal handler
                                    before re-raising signal.

* plugins.d/password-prompt.c (main): Check return values from
                                      "sigaddset()".

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * along with this program.  If not, see
20
20
 * <http://www.gnu.org/licenses/>.
21
21
 * 
22
 
 * Contact the authors at <mandos@fukt.bsnet.se>.
 
22
 * Contact the authors at <https://www.fukt.bsnet.se/~belorn/> and
 
23
 * <https://www.fukt.bsnet.se/~teddy/>.
23
24
 */
24
25
 
25
26
#define _GNU_SOURCE             /* getline() */
44
45
#include <errno.h>              /* errno, EINVAL */
45
46
#include <iso646.h>             /* or, not */
46
47
#include <stdbool.h>            /* bool, false, true */
47
 
#include <string.h>             /* strlen, rindex */
 
48
#include <string.h>             /* strlen, rindex, strncmp, strcmp */
48
49
#include <argp.h>               /* struct argp_option, struct
49
50
                                   argp_state, struct argp,
50
51
                                   argp_parse(), error_t,
190
191
  }
191
192
  
192
193
  t_new = t_old;
193
 
  t_new.c_lflag &= ~(tcflag_t)ECHO;
 
194
  t_new.c_lflag &= ~ECHO;
194
195
  if(tcsetattr(STDIN_FILENO, TCSAFLUSH, &t_new) != 0){
195
196
    perror("tcsetattr-echo");
196
197
    return EXIT_FAILURE;