From: Oliver Kiddle Date: Wed, 18 May 2005 12:57:40 +0000 (+0000) Subject: fix a bug affecting AFS where nmh was setting the READONLY flag for a X-Git-Tag: RELEASE_1_2~41 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=c066fcb6cd31e473e0880849a92da361b9e88d98;p=mmh 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 --- 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);