GNU bug report logs -
#11400
24.0.95; `url-copy-file' doesn't respect the umask
Previous Next
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
Message #23 received at 11400 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> 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?
It's standard for certain applications (like mail readers) to enforce a
separate umask, which is what Gnus does via `mm-save-part-to-file'.
However:
> 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.
As Stefan points out, it's a bug for the url library to use this rather
high-level library to save stuff. And the url library has no reason not
to heed the umask.
Anyway, this isn't a Gnus bug, so I'm reassigning it back to Emacs.
--
(domestic pets only, the antidote for overdose, milk.)
http://lars.ingebrigtsen.no * Lars Magne Ingebrigtsen
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.