diff --git a/g10/ChangeLog b/g10/ChangeLog index 76373af05..b8f338b8f 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,8 @@ +2008-08-01 Werner Koch + + * tdbio.c (open_db) [!EROFS]: Move closing parens out of the + ifdef. Reported by Ken Takusagawa. + 2008-04-30 Werner Koch * getkey.c (parse_auto_key_locate): Ignore nodefault and local diff --git a/g10/tdbio.c b/g10/tdbio.c index 0ad0f1e02..8fc02bc82 100644 --- a/g10/tdbio.c +++ b/g10/tdbio.c @@ -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)