bugGNU Zile (Zile is Lossy Emacs) - Bugs: bug #33006, Can't save files on another volume

 
 

bug #33006: Can't save files on another volume

Submitted by:  Gary V. Vaughan <gary>
Submitted on:  Wed 06 Apr 2011 09:55:46 AM UTC  
 
Category: LuaSeverity: 3 - Normal
Status: FixedAssigned to: None
Open/Closed: ClosedRelease: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 27 Apr 2011 01:12:40 PM UTC, comment #2:

Should be fixed now; please confirm and close.

Note, the fix needs luaposix 5.1.10 for mkstemp.

Reuben Thomas <rrt>
Project Administrator
Tue 26 Apr 2011 11:53:56 PM UTC, comment #1:

The bug here is that copy_file always writes to a temporary file whose name is given by os.tmpname (), and then, in this case, attempts a cross-volume rename, which fails, whereas C Zile uses mkstemp to create a temporary file in the destination file's directory.

Reuben Thomas <rrt>
Project Administrator
Wed 06 Apr 2011 09:55:46 AM UTC, original submission:

Mac OS mounts external media into the /Volumes directory, but Lua Zile always crashes with a single beep in the save-buffer routine before the changes are flushed back to disk when editing files on other mounted media.

I'm not sure how easy this is to reproduce on Linux, but the fix might be apparent by inspection of the code if it is a Mac specific problem. If not, I'll try to debug myself... given some pointers on where to start, or how to use ldb to get to the bottom of it :)

Gary V. Vaughan <gary>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rrt (Posted a comment)
  • -unavailable- added by gary (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 28 Apr 2011 06:40:10 AM UTCgaryStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1