From: Ken Hornstein Date: Tue, 15 Oct 2013 18:48:19 +0000 (-0400) Subject: Remove unneeded stat() call; was a leftover from the original MH X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/892a81dbb7c632d80fb528609f5abbd3b7ba43c6?hp=23dde40d04b6cd6c8e6b266678df12dece44f7ee 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(). --- 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));