File fortune-fix-missing-closedir.patch of Package fortune

---
 fortune/fortune.c |    1 +
 1 file changed, 1 insertion(+)

Index: fortune/fortune/fortune.c
===================================================================
--- fortune.orig/fortune/fortune.c	2009-08-10 14:30:04.000000000 +0200
+++ fortune/fortune/fortune.c	2009-08-10 14:30:29.000000000 +0200
@@ -715,6 +715,7 @@ register FILEDESC	*fp;
 		else
 			free(name);
 	}
+	closedir(dir);
 	if (fp->num_children == 0) {
 		(void) fprintf(stderr,
 		    "fortune: %s: No fortune files in directory.\n", fp->path);
openSUSE Build Service is sponsored by