aboutsummaryrefslogtreecommitdiffstats
path: root/g10/tdbio.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-07-18 17:58:25 +0000
committerWerner Koch <[email protected]>2005-07-18 17:58:25 +0000
commit6dc5a119975f278d84c5147d430e07e91df1727b (patch)
tree5882f6f33e03f786a481b3181aacbdb46cce9ee1 /g10/tdbio.c
parent* trustdb.c (clean_uids_from_key): Don't keep a valid selfsig around (diff)
downloadgnupg-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 'g10/tdbio.c')
-rw-r--r--g10/tdbio.c6
1 files changed, 5 insertions, 1 deletions
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"));