From 2946300d5e92604f39d0d0177c7d26e4ed6f09d8 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Wed, 2 Nov 2005 08:58:16 +0000 Subject: Relevant BUGIDs: 624214 Purpose of commit: bugfix Commit summary: --------------- 2005-10-31 Thorsten Kukuk * modules/pam_filter/pam_filter.c: Use XCASE only if defined [#624214] --- modules/pam_filter/pam_filter.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/pam_filter/pam_filter.c') diff --git a/modules/pam_filter/pam_filter.c b/modules/pam_filter/pam_filter.c index ef6695d9..63c47c44 100644 --- a/modules/pam_filter/pam_filter.c +++ b/modules/pam_filter/pam_filter.c @@ -320,7 +320,10 @@ set_filter (pam_handle_t *pamh, int flags UNUSED, int ctrl, t_mode.c_oflag &= ~OPOST; /* no ouput post processing */ /* no signals, canonical input, echoing, upper/lower output */ - t_mode.c_lflag &= ~(ISIG|ICANON|ECHO|XCASE); +#ifdef XCASE + t_mode.c_lflag &= ~(XCASE); +#endif + t_mode.c_lflag &= ~(ISIG|ICANON|ECHO); t_mode.c_cflag &= ~(CSIZE|PARENB); /* no parity */ t_mode.c_cflag |= CS8; /* 8 bit chars */ -- cgit v1.2.3