/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: 2008-12-28 10:35:32 UTC
  • Revision ID: teddy@fukt.bsnet.se-20081228103532-rsh0y9slgh9jc3vo
* mandos (AvahiError): Converted to use unicode.  All users changed.
  (AvahiError.__init__): Take *args and **kwargs and pass on all
                         arguments to super() call.
  (AvahiError.__str__): Removed.
  (AvahiError.__unicode__): New.
  (entry_group_state_changed): Bug fix: Raise AvahiGroupError with one
                               argument, not two.
  (main): Bug fix: on AvahiError, removed "%s" from log message.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*  -*- coding: utf-8 -*- */
2
2
/*
3
3
 * Passprompt - Read a password from the terminal and print it
4
 
 *
5
 
 * Copyright © 2007-2008 Teddy Hogeborn & Björn Påhlsson
 
4
 * 
 
5
 * Copyright © 2008 Teddy Hogeborn
 
6
 * Copyright © 2008 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
52
53
 
53
54
volatile bool quit_now = false;
54
55
bool debug = false;
55
 
const char *argp_program_version = "password-prompt 1.0";
 
56
const char *argp_program_version = "password-prompt " VERSION;
56
57
const char *argp_program_bug_address = "<mandos@fukt.bsnet.se>";
57
58
 
58
59
static void termination_handler(__attribute__((unused))int signum){
249
250
      fprintf(stderr, "getline() returned 0, retrying.\n");
250
251
    }
251
252
  }
 
253
 
 
254
  free(buffer);
252
255
  
253
256
  if (debug){
254
257
    fprintf(stderr, "Restoring terminal attributes\n");