aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmerrno.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-07-27 09:31:14 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2016-07-27 09:31:14 +0300
commitb498227f2b983e83920c6dbe402d80f2ab6bbf39 (patch)
tree5144a034ae66fbeddbf6875c6910243559b6a4a9 /src/gdbmerrno.c
parent6759418788bea3fc297dc8ebdc6b8c06f921e016 (diff)
downloadgdbm-b498227f2b983e83920c6dbe402d80f2ab6bbf39.tar.gz
gdbm-b498227f2b983e83920c6dbe402d80f2ab6bbf39.tar.bz2
Avoid range error when doubling directory size.
* src/bucket.c (_gdbm_split_bucket): Avoid range error when doubling directory size. * src/gdbm.h.in (GDBM_ERR_DIR_OVERFLOW): New error code. * src/gdbmerrno.c (gdbm_errlist): Describe GDBM_ERR_DIR_OVERFLOW.
Diffstat (limited to 'src/gdbmerrno.c')
-rw-r--r--src/gdbmerrno.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gdbmerrno.c b/src/gdbmerrno.c
index 7326be7..e2eadd6 100644
--- a/src/gdbmerrno.c
+++ b/src/gdbmerrno.c
@@ -123,7 +123,8 @@ const char * const gdbm_errlist[_GDBM_MAX_ERRNO+1] = {
[GDBM_ERR_FILE_OWNER] = N_("Failed to restore file owner"),
[GDBM_ERR_FILE_MODE] = N_("Failed to restore file mode"),
[GDBM_NEED_RECOVERY] = N_("Database needs recovery"),
- [GDBM_BACKUP_FAILED] = N_("Failed to create backup copy")
+ [GDBM_BACKUP_FAILED] = N_("Failed to create backup copy"),
+ [GDBM_ERR_DIR_OVERFLOW] = N_("File directory overflow")
};
const char *

Return to:

Send suggestions and report system problems to the System administrator.