mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-22 19:58:29 +01:00
Fix !EROFS bug
This commit is contained in:
parent
ecff4d37bf
commit
99fb609e0a
@ -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>
|
2008-04-30 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* getkey.c (parse_auto_key_locate): Ignore nodefault and local
|
* getkey.c (parse_auto_key_locate): Ignore nodefault and local
|
||||||
|
@ -592,8 +592,9 @@ open_db()
|
|||||||
db_fd = open (db_name, O_RDWR | MY_O_BINARY );
|
db_fd = open (db_name, O_RDWR | MY_O_BINARY );
|
||||||
if (db_fd == -1 && (errno == EACCES
|
if (db_fd == -1 && (errno == EACCES
|
||||||
#ifdef EROFS
|
#ifdef EROFS
|
||||||
|| errno == EROFS)
|
|| errno == EROFS
|
||||||
#endif
|
#endif
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
db_fd = open (db_name, O_RDONLY | MY_O_BINARY );
|
db_fd = open (db_name, O_RDONLY | MY_O_BINARY );
|
||||||
if (db_fd != -1)
|
if (db_fd != -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user