From kde-commits Fri Jun 11 21:52:02 2004 From: =?utf-8?q?Ingo=20Kl=C3=B6cker?= Date: Fri, 11 Jun 2004 21:52:02 +0000 To: kde-commits Subject: KDE_3_2_BRANCH: kdepim/kmail Message-Id: <20040611215202.9DDDB16AAB () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=108699072813450 CVS commit by kloecker: Backport fix for bug 83235 (Kmail crashes on startup). M +3 -2 kmfoldermaildir.cpp 1.79.4.3 M +2 -1 kmfoldermbox.cpp 1.92.2.3 --- kdepim/kmail/kmfoldermaildir.cpp #1.79.4.2:1.79.4.3 @@ -107,8 +107,9 @@ int KMFolderMaildir::open() } else { mIndexStream = fopen(QFile::encodeName(indexLocation()), "r+"); // index file - if ( mIndexStream ) + if ( mIndexStream ) { fcntl(fileno(mIndexStream), F_SETFD, FD_CLOEXEC); updateIndexStreamPtr(); } + } if (!mIndexStream) --- kdepim/kmail/kmfoldermbox.cpp #1.92.2.2:1.92.2.3 @@ -138,4 +138,5 @@ int KMFolderMbox::open() } else { mIndexStream = fopen(QFile::encodeName(indexLocation()), "r+"); // index file + if ( mIndexStream ) updateIndexStreamPtr(); }