From c066fcb6cd31e473e0880849a92da361b9e88d98 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Wed, 18 May 2005 12:57:40 +0000 Subject: [PATCH] fix a bug affecting AFS where nmh was setting the READONLY flag for a folder even when you do have write access to the folder --- ChangeLog | 4 ++++ sbr/folder_read.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0a0d477..644f429 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-05-18 Oliver Kiddle + * savannah@brisammon.fastmail.fm: sbr/folder_read.c: fix a bug + affecting AFS where nmh was setting the READONLY flag for a + folder even when you do have write access to the folder + * Carl Mummert: h/fmt_compile.h, man/mh-format.man, sbr/fmt_compile.c, sbr/fmt_scan.c: add unquote() function for removing quotes from RFC-2822 encoded headers diff --git a/sbr/folder_read.c b/sbr/folder_read.c index 2e67917..6cd0d10 100644 --- a/sbr/folder_read.c +++ b/sbr/folder_read.c @@ -57,7 +57,7 @@ folder_read (char *name) 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); -- 1.7.10.4