/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-23 20:31:47 UTC
  • Revision ID: teddy@fukt.bsnet.se-20090923203147-mbs7klc1tugrrdwf
* mandos (Client.__init__): Open "secfile" file in binary mode.

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 <https://www.fukt.bsnet.se/~belorn/> and
23
 
 * <https://www.fukt.bsnet.se/~teddy/>.
 
22
 * Contact the authors at <mandos@fukt.bsnet.se>.
24
23
 */
25
24
 
26
25
#define _GNU_SOURCE             /* getline() */
191
190
  }
192
191
  
193
192
  t_new = t_old;
194
 
  t_new.c_lflag &= ~ECHO;
 
193
  t_new.c_lflag &= ~(tcflag_t)ECHO;
195
194
  if(tcsetattr(STDIN_FILENO, TCSAFLUSH, &t_new) != 0){
196
195
    perror("tcsetattr-echo");
197
196
    return EXIT_FAILURE;