aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author0 <NotZed@Ximian.com>2001-10-30 12:33:44 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-10-30 12:33:44 +0800
commitef9b8189dcdedf3995d160c11490b8c454819e90 (patch)
tree25e83e0097afde20b8f796c53e72a585b0a87d9e
parent5f61594790c51540b9d48ffb7383223b318710ac (diff)
downloadgsoc2013-evolution-ef9b8189dcdedf3995d160c11490b8c454819e90.tar.gz
gsoc2013-evolution-ef9b8189dcdedf3995d160c11490b8c454819e90.tar.zst
gsoc2013-evolution-ef9b8189dcdedf3995d160c11490b8c454819e90.zip
If we can't open blocks, dont try to deref it.
2001-10-30 <NotZed@Ximian.com> * ibex_block.c (ibex_reset): If we can't open blocks, dont try to deref it. svn path=/trunk/; revision=14423
-rw-r--r--libibex/ChangeLog5
-rw-r--r--libibex/ibex_block.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/libibex/ChangeLog b/libibex/ChangeLog
index 5c17fab03e..15e7296eea 100644
--- a/libibex/ChangeLog
+++ b/libibex/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-30 <NotZed@Ximian.com>
+
+ * ibex_block.c (ibex_reset): If we can't open blocks, dont try to
+ deref it.
+
2001-10-29 <NotZed@Ximian.com>
* ibex_block.c (ibex_move): Always rename file even if mv failed.
diff --git a/libibex/ibex_block.c b/libibex/ibex_block.c
index 5ac538346b..74eb594ad6 100644
--- a/libibex/ibex_block.c
+++ b/libibex/ibex_block.c
@@ -450,9 +450,10 @@ ibex_reset(ibex *ib)
ib->blocks = ibex_block_cache_open(ib->name, ib->flags, ib->mode);
if (ib->blocks == 0) {
g_warning("ibex_reset create: Error occured?: %s\n", strerror(errno));
+ } else {
+ /* FIXME: the blockcache or the wordindex needs to manage the other one */
+ ib->words = ib->blocks->words;
}
- /* FIXME: the blockcache or the wordindex needs to manage the other one */
- ib->words = ib->blocks->words;
}
/**
@@ -494,7 +495,7 @@ int ibex_close (ibex *ib)
/* rename/move the ibex file */
int ibex_move(ibex *ib, const char *newname)
{
- int ret = 0, error;
+ int ret = 0, error = 0;
IBEX_LOCK(ib);
@@ -502,6 +503,7 @@ int ibex_move(ibex *ib, const char *newname)
close_backend(ib);
if (rename(ib->name, newname) == -1) {
+ g_warning("could not rename ibex file '%s' to '%s': '%s'", ib->name, newname, strerror(errno));
ret = -1;
error = errno;
}
/cgit.cgi/freebsd-ports-gnome/commit/irc/ninja?h=mate-1.16&id=da58ab17c1c2618bc57be699c032f55c84fcfcfd'>Bump PORTREVISION due to changes in the distfile.markp2002-02-171-0/+1 * Updated checksum. The distfile was rerolled after minor bug fixes andmarkp2002-02-171-1/+1 * Update to 1.5.8pat2002-01-222-2/+2 * Update to 1.5.7.petef2001-12-082-2/+2 * Update MAINTAINER's email address: anders@codefactory.se -> anders@hack.orgpetef2001-11-301-1/+1 * Oops, this was supposed to be removed.petef2001-11-091-0/+0 * Update to 1.5.5petef2001-11-094-38/+5 * Update to version 1.5.4kevlo2001-10-202-2/+2 * update to 1.5.3.sf2001-08-242-3/+3 * update to 1.5.2.sf2001-03-063-4/+22 * Update to version 1.5.1kevlo2001-01-235-22/+19 * Eliminate WRKSRC=${WRKDIR}/${PKGNAME} lines, as these will break whenasami2000-09-251-2/+1 * Remove maintainership of most of my ports. I don't really havecpiazza2000-06-211-1/+1 * Update to 1.2cpiazza2000-05-073-3/+4 * Need a subdir in the master sitecpiazza2000-04-231-1/+1 * Update master sitescpiazza2000-04-191-1/+1 * Convert to the PORTNAME - PORTVERSION syntax.obrien2000-04-121-3/+3 * The ftp site is empty so use the http mirrorcpiazza2000-02-221-1/+1 * portlint, non-functional/whitespace changes.billf2000-02-161-1/+1 * Fix MASTER_SITEScpiazza2000-01-221-2/+1 * Change Id->FreeBSD.obrien1999-08-251-1/+1 * Update MASTER_SITES and DISTNAME to make this port work again.cpiazza1999-07-142-4/+5 * New ports/{java,irc,x11-servers} categories, Step #4 - Adjust new Makefiles.billf1999-06-281-2/+2 * Commit #3/4 to enforce caps, no period.hoek1999-06-271-1/+1 * Author fixed a bug without updating the version number.cpiazza1999-06-262-2/+2 * Change my email address to FreeBSD.org.cpiazza1999-06-19