From 892a81dbb7c632d80fb528609f5abbd3b7ba43c6 Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Tue, 15 Oct 2013 14:48:19 -0400 Subject: [PATCH 1/1] Remove unneeded stat() call; was a leftover from the original MH code where the owner of the folder was checked against the results of getuid(). --- sbr/folder_read.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sbr/folder_read.c b/sbr/folder_read.c index 170946b4..4a9f7fba 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -27,7 +27,6 @@ folder_read (char *name, int lockflag) { int msgnum, prefix_len, len, *mi; struct msgs *mp; - struct stat st; struct dirent *dp; DIR *dd; bvector_t *v; @@ -39,11 +38,6 @@ folder_read (char *name, int lockflag) return NULL; } - if (stat (name, &st) == -1) { - free (name); - return NULL; - } - /* Allocate the main structure for folder information */ mp = (struct msgs *) mh_xmalloc ((size_t) sizeof(*mp)); -- 2.48.1