~mcepl/ldapvi

0a7705dc99b4063495e64fc230d87e1b43f3dc90 — Matěj Cepl 6 years ago d520d9d factory
Don’t switch off canonical mode.

I am not sure what's the point, but certainly it leads to password
showing up in the audit log.
1 files changed, 1 insertions(+), 2 deletions(-)

M ldapvi/ldapvi.c
M ldapvi/ldapvi.c => ldapvi/ldapvi.c +1 -2
@@ 97,7 97,6 @@ cleanup(int rc, char *pathname)
	if (tcgetattr(0, &term) == -1)
		/* oh, running without a terminal */
		return;
	term.c_lflag |= ICANON;
	term.c_lflag |= ECHO;
	if (tcsetattr(0, TCSANOW, &term) == -1) syserr();
}


@@ 1418,7 1417,7 @@ write_file_header(FILE *s, cmdline *cmdline)
		 * the "encoding" option affects more than just the file,
		 * and a "fileencoding" doesn't actually seem exist.  Very
		 * disappointing, but until a real solution turns up, it's
		 * better to do nothing. */ 
		 * better to do nothing. */
		fputs("# -*- coding: utf-8 -*-\n", s);
		nlines++;
	}