Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37742262
en ru br
ALT Linux repos
S:0.6.1-alt1
D:0.6.0-alt0.1
5.0: 0.5.6-alt3
4.1: 0.5.6-alt1
4.0: 0.5.5-alt1.1
3.0: 0.5.3-alt1

Other repositories
Upstream:0.5.6

Group :: Networking/Mail
RPM: abook

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: 0001-fixed-bug-6.patch
Download


From 0618ad68a289b10bcc0c5fdbc8a0c8fa71542e4d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rapha=C3=ABl=20Droz?= <raphael.droz+floss@gmail.com>
Date: Sun, 27 Mar 2016 17:05:44 -0300
Subject: [PATCH 1/3] fixed bug #6
---
 filter.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/filter.c b/filter.c
index 2cb145c..5ae7bd6 100644
--- a/filter.c
+++ b/filter.c
@@ -435,8 +435,10 @@ e_write_file(char *filename, int (*func) (FILE *in, struct db_enumerator e),
 	if((out = fopen(filename, "a")) == NULL)
 		return 1;
 
-	if(ftell(out))
+	if(ftell(out)) {
+		fclose(out);
 		return 1;
+	}
 
 	ret = (*func) (out, enumerator);
 
-- 
2.13.5
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin