[Bug: 21.4.20] find file on nonwritable file creates writable buffer

Vin Shelton acs at xemacs.org
Mon Jan 1 20:25:56 EST 2007


Aaron, Benson, et al -

> Aaron Stambler writes:
> This problem did not exist in 21.4.19.
>
> I do C-x C-f to find a file, in this case a file that is not
> writable--its read-only attribute is set.
>
> The buffer that is created to contain the file allows modifications
> in the buffer.  In 21.4.19 the buffer did not allow modifications.

On 12/25/06, Benson Margulies <bim2006 at basistech.com> wrote:
> I have to say that I'm not a great enthusiast for the old, nasty,
> read-only attribute bit. I'm thinking that my code only checks it if
> it can't see the ACL, and now it dawns on me that, even if all is
> well in ACL-reading land, we still have to check it.

Benson has submitted a patch to fix this for 21.4.  (I've attached it
to this message, since the version I extracted from the archives, both
from calypso.tux.org and from gmane.org was malformed.)

I will soon apply this patch to the 21.4 branch (look for a message on
xemacs-patches in case you care as to the exact timing), as the patch
seems to Do The Right Thing, both for native and cygwin versions.  The
patch will appear in the 21.4.21 release, which probably won't be
released for several months.

Interestingly, one of the reasons I didn't observe this bug is that
whenever I want to make one of my files read-only, I use chmod -w under
cygwin, and those files were properly identified as read-only under
both native and cygwin versions, even in 21.4.20.

Regards,
  Vin Shelton

-- 
The Journey by Mary Oliver
http://www.poemhunter.com/p/m/poem.asp?poet=6771&poem=30506
-------------- next part --------------
A non-text attachment was scrubbed...
Name: benson.patch
Type: application/octet-stream
Size: 4828 bytes
Desc: not available
Url : http://lists.xemacs.org/pipermail/xemacs-beta/attachments/20070101/0b4d05c3/benson.obj


More information about the XEmacs-Beta mailing list