GNU bug report logs - #6297
file-expand-wildcards permission error on top-level mount point

Previous Next

Package: emacs;

Reported by: MON KEY <monkey <at> sandpframing.com>

Date: Fri, 28 May 2010 22:32:02 UTC

Severity: minor

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 6297 in the body.
You can then email your comments to 6297 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#6297; Package emacs. (Fri, 28 May 2010 22:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to MON KEY <monkey <at> sandpframing.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 28 May 2010 22:32:02 GMT) Full text and rfc822 format available.

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

From: MON KEY <monkey <at> sandpframing.com>
To: bug-gnu-emacs <at> gnu.org
Subject: file-expand-wildcards permission error on top-level mount point
Date: Fri, 28 May 2010 18:30:53 -0400
file-expand-wildcards permission error on top-level mount point

Evaluating (file-expand-wildcards "/*/SOME-DIR/*")

Where the first kleene's target is a mount point e.g.:
 "/mnt/SOME-DIR/*"

Signals this error:
 (file-error "Opening directory" "permission denied" "/lost+found/")

I'm not sure where the error is getting signalled whether its happening
under the root mount point e.g. "/" or if its occuring under

 "/mnt/God-knows-where/..."

On this sytem "lost+found" is the directory that was placed in an ext4
partition for recovery purposes.

It appears that `file-expand-wildcards' gets trounced via
`directory-files' which is signaling an error if the permissions
aren't kosher somewhere.

Shouldn't one of these guys be checking with `file-readable-p' or
`file-attributes' at some such at some point whilst walking the
filesytem?

The error is signalled here too:

 (file-expand-wildcards "/*/etc/*.conf")

Whereas this works fine:

 (file-expand-wildcards "/etc/*.conf")

which seems odd because in each case (error or not) the permissions
can't be more than root:root i.e. the file-list returnd by the last
form are all root:root.

Surely one shouldn't need to be considering umask/dmask/setuid
etc. just to use this function?


On a GNU Emacs 23.2.1
(i686-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-05-10

-- 
/s_P\




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6297; Package emacs. (Sun, 03 Jul 2011 01:50:02 GMT) Full text and rfc822 format available.

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

From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
To: MON KEY <monkey <at> sandpframing.com>
Cc: 6297 <at> debbugs.gnu.org
Subject: Re: file-expand-wildcards permission error on top-level mount point
Date: Sun, 03 Jul 2011 03:48:48 +0200
MON KEY <monkey <at> sandpframing.com> writes:

> file-expand-wildcards permission error on top-level mount point
>
> Evaluating (file-expand-wildcards "/*/SOME-DIR/*")
>
> Where the first kleene's target is a mount point e.g.:
>  "/mnt/SOME-DIR/*"
>
> Signals this error:
>  (file-error "Opening directory" "permission denied" "/lost+found/")

Yup.  Fixed in Emacs 24.

-- 
(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. (Sun, 03 Jul 2011 01:50:03 GMT) Full text and rfc822 format available.

bug marked as fixed in version 24.1, send any further explanations to 6297 <at> debbugs.gnu.org and MON KEY <monkey <at> sandpframing.com> Request was from Lars Magne Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 03 Jul 2011 01:50:03 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. (Sun, 31 Jul 2011 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 294 days ago.

Previous Next


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