projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rolled release.
[mmh]
/
sbr
/
folder_read.c
diff --git
a/sbr/folder_read.c
b/sbr/folder_read.c
index
0d01293
..
6cd0d10
100644
(file)
--- a/
sbr/folder_read.c
+++ b/
sbr/folder_read.c
@@
-3,6
+3,10
@@
* folder_read.c -- initialize folder structure and read folder
*
* $Id$
* folder_read.c -- initialize folder structure and read folder
*
* $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh. See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
*/
#include <h/mh.h>
*/
#include <h/mh.h>
@@
-53,7
+57,7
@@
folder_read (char *name)
mp->numsel = 0;
mp->nummsg = 0;
mp->numsel = 0;
mp->nummsg = 0;
- if (access (name, W_OK) == -1 || st.st_uid != getuid())
+ if (access (name, W_OK) == -1)
set_readonly (mp);
prefix_len = strlen(BACKUP_PREFIX);
set_readonly (mp);
prefix_len = strlen(BACKUP_PREFIX);
@@
-66,7
+70,7
@@
folder_read (char *name)
adios (NULL, "unable to allocate storage");
while ((dp = readdir (dd))) {
adios (NULL, "unable to allocate storage");
while ((dp = readdir (dd))) {
- if ((msgnum = m_atoi (dp->d_name))) {
+ if ((msgnum = m_atoi (dp->d_name)) && msgnum > 0) {
/*
* Check if we need to allocate more
* temporary elements for message names.
/*
* Check if we need to allocate more
* temporary elements for message names.