summaryrefslogtreecommitdiff
path: root/modules/pam_filter
diff options
context:
space:
mode:
authorThorsten Kukuk <kukuk@thkukuk.de>2005-11-02 08:58:16 +0000
committerThorsten Kukuk <kukuk@thkukuk.de>2005-11-02 08:58:16 +0000
commit2946300d5e92604f39d0d0177c7d26e4ed6f09d8 (patch)
tree7f57b65f1bf42f93519ec0869c70fa3a6d3c7e49 /modules/pam_filter
parent0c44a58532cbdc0ee7df92fcbc33d82519df9761 (diff)
Relevant BUGIDs: 624214
Purpose of commit: bugfix Commit summary: --------------- 2005-10-31 Thorsten Kukuk <kukuk@suse.de> * modules/pam_filter/pam_filter.c: Use XCASE only if defined [#624214]
Diffstat (limited to 'modules/pam_filter')
-rw-r--r--modules/pam_filter/pam_filter.c5
1 files changed, 4 insertions, 1 deletions
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 */