1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-06-26 01:52:45 +02:00

Fix !EROFS bug

This commit is contained in:
Werner Koch 2008-08-01 10:48:36 +00:00
parent ecff4d37bf
commit 99fb609e0a
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-08-01 Werner Koch <wk@g10code.com>
* tdbio.c (open_db) [!EROFS]: Move closing parens out of the
ifdef. Reported by Ken Takusagawa.
2008-04-30 Werner Koch <wk@g10code.com>
* getkey.c (parse_auto_key_locate): Ignore nodefault and local

View File

@ -592,8 +592,9 @@ open_db()
db_fd = open (db_name, O_RDWR | MY_O_BINARY );
if (db_fd == -1 && (errno == EACCES
#ifdef EROFS
|| errno == EROFS)
|| errno == EROFS
#endif
)
) {
db_fd = open (db_name, O_RDONLY | MY_O_BINARY );
if (db_fd != -1)