🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #99134

Minor glitch in ftp-write-file (ftp.el)

#99134
From: Paul N. Hilfinger
Date: Sat, 03 Nov 1990 19:10
44 lines
2040 bytes
My version of ftp.el (apparently distributed with Emacs 18.55.5)
contains an ftp-write-file with an evident minor bug.  Using the
command will cause some "random" buffer to become read-only.  For
example, with the following buffer configuration

     MR Buffer         Size  Mode           File
     -- ------         ----  ----           ----
    .   general.bib    1808  Text   	    ...
     *  draft-1	       303   mh-e letter    ...
     *  *Buffer List*  0     Buffer Menu	
     *  *shell*	       64914 Shell		
     ...

executing ftp-write-file on general.bib (to
ginger.berkeley.edu:lib/tex/bib/general.bib) gave the following configuration.

     MR Buffer         Size  Mode           File
     -- ------         ----  ----           ----
    .   general.bib    1808  Text	    ...
     *  *Buffer List*  0     Buffer Menu	
     *% draft-1	       303   mh-e letter    ...
     *  *shell*	       64914 Shell		
     ...

------

Looking at ftp-sentinel shows a possible problem:

	   (let (msg
		 ...
		 (buffer-read-only nil))
	     ...
	     (if (not input)
		 (progn
		   ...
		   (kill-buffer (current-buffer)))
	       ...)
	     ...)

buffer-read-only is t on entrance to this let.  This will restore
buffer-read-only to t on exit from the let, which is after the current
buffer has been destroyed.

Paul Hilfinger
Technical Details
Message-ID: <9011031910.AA13442@rama.cs.cornell.edu>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!swbatl!cs.utexas.edu!tut.cis.ohio-state.edu!CS.CORNELL.EDU!hilfingr

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,476bb675c292134e,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1990-11-03 11:10:20 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!wuarchive!swbatl!cs.utexas.edu!tut.cis.ohio-state.edu!CS.CORNELL.EDU!hilfingr
From: hilfingr@CS.CORNELL.EDU (Paul N. Hilfinger)
Newsgroups: gnu.emacs.bug
Subject: Minor glitch in ftp-write-file (ftp.el)
Message-ID: <9011031910.AA13442@rama.cs.cornell.edu>
Date: 3 Nov 90 19:10:20 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 44
Approved: bug-gnu-emacs@prep.ai.mit.edu
Posted: Sat Nov  3 20:10:20 1990