diff options
author | Werner Koch <[email protected]> | 2005-07-18 17:58:25 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-07-18 17:58:25 +0000 |
commit | 6dc5a119975f278d84c5147d430e07e91df1727b (patch) | |
tree | 5882f6f33e03f786a481b3181aacbdb46cce9ee1 | |
parent | * trustdb.c (clean_uids_from_key): Don't keep a valid selfsig around (diff) | |
download | gnupg-6dc5a119975f278d84c5147d430e07e91df1727b.tar.gz gnupg-6dc5a119975f278d84c5147d430e07e91df1727b.zip |
* tdbio.c (open_db): Check for EROFS. Suggested by Bryce Nichols.
* ttyio.c (do_get): Move printing of the prompt after disabling
echo. Suggested by Scott Worley.
Diffstat (limited to '')
-rw-r--r-- | THANKS | 2 | ||||
-rw-r--r-- | TODO | 8 | ||||
-rw-r--r-- | g10/ChangeLog | 4 | ||||
-rw-r--r-- | g10/tdbio.c | 6 | ||||
-rw-r--r-- | util/ChangeLog | 5 | ||||
-rw-r--r-- | util/ttyio.c | 11 |
6 files changed, 26 insertions, 10 deletions
@@ -20,6 +20,7 @@ Brian M. Carlson [email protected] Brian Moore [email protected] Brian Warner [email protected] Bryan Fullerton [email protected] +Bryce Nichols [email protected] Caskey L. Dickson [email protected] Cees van de Griend [email protected] Charles Levert [email protected] @@ -184,6 +185,7 @@ Ryan Malayter [email protected] Sam Roberts [email protected] Sami Tolvanen [email protected] Sascha Kiefer [email protected] +Scott Worley [email protected] Sean MacLennan [email protected] Sebastian Klemke [email protected] Serge Munhoven [email protected] @@ -1,11 +1,3 @@ - * From: Nicolas Sierro - Date: Thu, 17 Jun 2004 12:31:24 +0200 - - I understand your concern regarding the GNU coding standards. In - zlib-1.2.1, apart from several bug fixes, the inflate code is about - 20% faster and the crc32 code about 50% faster. Some memory leaks were - also fixed according to the ChangeLog. - * Using an expired key for signing should give an error message "expired key" and not "unusable key'. Furthermore the error should also be thrown when the default key has expired. Reported by diff --git a/g10/ChangeLog b/g10/ChangeLog index 0a49037a0..36c2bccd2 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,7 @@ +2005-07-18 Werner Koch <[email protected]> + + * tdbio.c (open_db): Check for EROFS. Suggested by Bryce Nichols. + 2005-07-08 David Shaw <[email protected]> * trustdb.c (clean_uids_from_key): Don't keep a valid selfsig diff --git a/g10/tdbio.c b/g10/tdbio.c index ae04d1059..a5b30ead6 100644 --- a/g10/tdbio.c +++ b/g10/tdbio.c @@ -592,7 +592,11 @@ open_db() log_fatal( _("can't lock `%s'\n"), db_name ); #endif /* __riscos__ */ db_fd = open (db_name, O_RDWR | MY_O_BINARY ); - if (db_fd == -1 && errno == EACCES) { + if (db_fd == -1 && (errno == EACCES +#ifdef EROFS + || errno == EROFS) +#endif + ) { db_fd = open (db_name, O_RDONLY | MY_O_BINARY ); if (db_fd != -1) log_info (_("NOTE: trustdb not writable\n")); diff --git a/util/ChangeLog b/util/ChangeLog index 7218e6682..f04964a83 100644 --- a/util/ChangeLog +++ b/util/ChangeLog @@ -1,3 +1,8 @@ +2005-07-18 Werner Koch <[email protected]> + + * ttyio.c (do_get): Move printing of the prompt after disabling + echo. Suggested by Scott Worley. + 2005-06-23 David Shaw <[email protected]> * http.c (make_radix64_string): Add '=' padding as per standard. diff --git a/util/ttyio.c b/util/ttyio.c index 65d50479d..5dde139d2 100644 --- a/util/ttyio.c +++ b/util/ttyio.c @@ -397,7 +397,6 @@ do_get( const char *prompt, int hidden ) init_ttyfp(); last_prompt_len = 0; - tty_printf( "%s", prompt ); buf = m_alloc(n=50); i = 0; @@ -405,6 +404,8 @@ do_get( const char *prompt, int hidden ) if( hidden ) SetConsoleMode(con.in, HID_INPMODE ); + tty_printf( "%s", prompt ); + for(;;) { DWORD nread; @@ -436,6 +437,7 @@ do_get( const char *prompt, int hidden ) SetConsoleMode(con.in, DEF_INPMODE ); #elif defined(__riscos__) + tty_printf( "%s", prompt ); do { c = riscos_getchar(); if (c == 0xa || c == 0xd) { /* Return || Enter */ @@ -490,6 +492,8 @@ do_get( const char *prompt, int hidden ) #endif } + tty_printf( "%s", prompt ); + /* fixme: How can we avoid that the \n is echoed w/o disabling * canonical mode - w/o this kill_prompt can't work */ while( read(fileno(ttyfp), cbuf, 1) == 1 && *cbuf != '\n' ) { @@ -503,6 +507,11 @@ do_get( const char *prompt, int hidden ) else if( c > 0xa0 ) ; /* we don't allow 0xa0, as this is a protected blank which may * confuse the user */ + /* Fixme: The above assumption is not bad. We assum a certain + character set and even worse, the W32 version behaves + differently. It is not clear how we can hix this. When + used for passphrases this code path strips off certain + characters so changing this might invalidate passphrases. */ else if( iscntrl(c) ) continue; if( !(i < n-1) ) { |