diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/ChangeLog | 8 | ||||
-rw-r--r-- | util/secmem.c | 2 | ||||
-rw-r--r-- | util/ttyio.c | 6 |
3 files changed, 15 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog index b2a1d21b7..e65a8d4a2 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,11 @@ +Fri Jun 26 10:38:35 1998 Werner Koch (wk@isil.d.shuttle.de) + + * ttyio.c (do_get): all iso8859-1 characters are now allowed. + +Thu Jun 25 15:57:21 1998 Werner Koch (wk@isil.d.shuttle.de) + + * secmem.c (lock_pool): Removed left over test code. + Wed Jun 10 07:39:41 1998 Werner Koch,mobil,,, (wk@tobold) * fileutil.c (compare_filenames): New. diff --git a/util/secmem.c b/util/secmem.c index ab4503db1..b1d86ebf1 100644 --- a/util/secmem.c +++ b/util/secmem.c @@ -71,7 +71,7 @@ lock_pool( void *p, size_t n ) uid_t uid; int err; - err = -1; mlock( p, n ); + err = mlock( p, n ); if( err && errno ) err = errno; diff --git a/util/ttyio.c b/util/ttyio.c index 415de65e4..bb795c282 100644 --- a/util/ttyio.c +++ b/util/ttyio.c @@ -230,6 +230,9 @@ do_get( const char *prompt, int hidden ) c = *cbuf; if( c == '\t' ) c = ' '; + else if( c > 0xa0 ) + ; /* we don't allow 0xa0, as this is a protected blank which may + * confuse the user */ else if( iscntrl(c) ) continue; if( !(i < n-1) ) { @@ -264,6 +267,9 @@ do_get( const char *prompt, int hidden ) c = *cbuf; if( c == '\t' ) c = ' '; + else if( c > 0xa0 ) + ; /* we don't allow 0xa0, as this is a protected blank which may + * confuse the user */ else if( iscntrl(c) ) continue; if( !(i < n-1) ) { |