GNU bug report logs - #9304
report-emacs-bug fails: /Mail write-protected.

Previous Next

Package: emacs;

Reported by: Stefan Klinger <all-lists <at> stefan-klinger.de>

Date: Mon, 15 Aug 2011 16:38:02 UTC

Severity: normal

Tags: fixed

Fixed in version 24.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 9304 in the body.
You can then email your comments to 9304 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9304; Package emacs. (Mon, 15 Aug 2011 16:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Klinger <all-lists <at> stefan-klinger.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 15 Aug 2011 16:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Klinger <all-lists <at> stefan-klinger.de>
To: bug-gnu-emacs <at> gnu.org
Subject: report-emacs-bug fails: /Mail write-protected.
Date: Mon, 15 Aug 2011 16:52:48 +0200
Reproduce: Start with a write-protected ~/Mail, run ‘emacs -Q’, type ‘M-x report-emacs-bug’. This fails with the message “make-directory: Creating directory: permission denied, /home/foo/Mail/drafts”. No further information is provided.

Directory ${HOME}/Mail is write protected intentionally. IMHO bug reports should be created in a somewhat temporary location.


‘emacs-version’ reports

  GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2011-04-10 on brahms, modified by Debian


Kind regards,
Stefan


-- 
Stefan Klinger                                      o/klettern
                                                    /\/  bis zum
send plaintext only - max size 32kB - no spam         \   Abfallen
http://stefan-klinger.de




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9304; Package emacs. (Mon, 15 Aug 2011 21:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 9304 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Klinger <all-lists <at> stefan-klinger.de>
Cc: 9304 <at> debbugs.gnu.org, Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Subject: Re: bug#9304: report-emacs-bug fails: /Mail write-protected.
Date: Mon, 15 Aug 2011 17:12:55 -0400
Stefan Klinger wrote:

> Reproduce: Start with a write-protected ~/Mail, run 'emacs -Q', type 'M-x report-emacs-bug'. This fails with the message "make-directory: Creating directory: permission denied, /home/foo/Mail/drafts". No further information is provided.

I was going to say that this won't happen in Emasc 24.1, due to the
changes from http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4432,
but it still does.

Perhaps

(defcustom message-auto-save-directory
  (if (file-exists-p message-directory)
      (file-name-as-directory (expand-file-name "drafts" message-directory))
    "~/")

should use `file-writable-p' instead of `file-exists-p'.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#9304; Package emacs. (Wed, 17 Aug 2011 21:43:02 GMT) Full text and rfc822 format available.

Message #11 received at 9304 <at> debbugs.gnu.org (full text, mbox):

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 9304 <at> debbugs.gnu.org, Stefan Klinger <all-lists <at> stefan-klinger.de>
Subject: Re: bug#9304: report-emacs-bug fails: /Mail write-protected.
Date: Wed, 17 Aug 2011 23:39:26 +0200
Glenn Morris <rgm <at> gnu.org> writes:

> Perhaps
>
> (defcustom message-auto-save-directory
>   (if (file-exists-p message-directory)
>       (file-name-as-directory (expand-file-name "drafts" message-directory))
>     "~/")
>
> should use `file-writable-p' instead of `file-exists-p'.

I've now done this.

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/




Added tag(s) fixed. Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 17 Aug 2011 21:43:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.1, send any further explanations to 9304 <at> debbugs.gnu.org and Stefan Klinger <all-lists <at> stefan-klinger.de> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 17 Aug 2011 21:43:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 15 Sep 2011 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.