select-editor should informatively handle read-only $HOME

Bug #264454 reported by Dustin Kirkland 
2
Affects Status Importance Assigned to Milestone
debianutils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: debianutils

bryce> kirkland: btw I ran into an issue with sensible-editor
<bryce> kirkland: I have a chroot set up with intrepid installed, and have emacs22 installed in that. When I do crontab -e, sensible-editor asks to choose vim.tiny or emacs22
<bryce> kirkland: I pick emacs22 which it accepts without error, but it pops up vi instead
<bryce> on exiting I see the error messages:
<bryce> /usr/bin/select-editor: 41: cannot create /home/bryce/.selected_editor: Permission denied
<bryce> /usr/bin/select-editor: 41: cannot create /home/bryce/.selected_editor: Permission denied
<bryce> I believe this is because I mount my home dir read-only inside the chroot
* bigjools-dinner is now known as bigjools
<bryce> I tried putting various things into ~/.selected_editor but didn't know what it expects to be there; couldn't get it to work.

Related branches

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Patch attached. Patch fixes both this bug, as well as Bug #264423.

:-Dustin

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package debianutils - 2.29ubuntu2

---------------
debianutils (2.29ubuntu2) intrepid; urgency=low

  * select-editor: ensure that $HOME/.selected_editor is writable
    (LP: #264454).
  * sensible-editor: ensure that select-editor is only called if the current
    input is a tty (LP: #264423).

 -- Dustin Kirkland <email address hidden> Wed, 03 Sep 2008 14:02:38 -0500

Changed in debianutils:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.