GNU bug report logs - #11400
24.0.95; `url-copy-file' doesn't respect the umask

Previous Next

Package: emacs;

Reported by: Donald Ephraim Curtis <dcurtis <at> milkbox.net>

Date: Fri, 4 May 2012 03:04:01 UTC

Severity: minor

Tags: fixed

Fixed in version 26.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 11400 <at> debbugs.gnu.org, Donald Ephraim Curtis <dcurtis <at> milkbox.net>
Subject: bug#11400: 24.0.95; `url-copy-file' doesn't respect the umask
Date: Thu, 10 May 2012 16:28:40 -0400
>> It seems that `url-copy-file' does not respect the `umask' value.
> Well, you could put it that way, or you could say that by default it
> creates private copies. Isn't this standard practice for many
> applications that download things?
> url-copy-file uses mm-save-part-to-file, which sets file modes according
> to mm-attachment-file-modes. For world-readable, set that to 420.
> There is no setting that means "don't change the mode bits"; maybe there
> should be.

BTW, I don't like the idea of URL using so much of "mm-*".
That doesn't feel like the right structuring.  I tend to think of mm- as
higher-level, so I'd expect mm- to use URL functions, but not the other
way around.


        Stefan




This bug report was last modified 8 years and 232 days ago.

Previous Next


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