From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#6297: file-expand-wildcards permission error on top-level mount point Date: Fri, 28 May 2010 18:30:53 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1275087475 28693 80.91.229.12 (28 May 2010 22:57:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 28 May 2010 22:57:55 +0000 (UTC) To: 6297@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 29 00:57:54 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OI8Us-0004Dw-N5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 May 2010 00:57:54 +0200 Original-Received: from localhost ([127.0.0.1]:57215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI8Uo-0000hf-6U for geb-bug-gnu-emacs@m.gmane.org; Fri, 28 May 2010 18:57:42 -0400 Original-Received: from [140.186.70.92] (port=38616 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI8Uf-0000hR-HY for bug-gnu-emacs@gnu.org; Fri, 28 May 2010 18:57:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OI8Ub-0006vi-Uf for bug-gnu-emacs@gnu.org; Fri, 28 May 2010 18:57:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33028) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI8Ub-0006ve-Ri for bug-gnu-emacs@gnu.org; Fri, 28 May 2010 18:57:29 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OI85y-00029D-C7; Fri, 28 May 2010 18:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: MON KEY Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 May 2010 22:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6297 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.12750858648236 (code B ref -1); Fri, 28 May 2010 22:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 May 2010 22:31:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI851-00028n-LE for submit@debbugs.gnu.org; Fri, 28 May 2010 18:31:03 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI850-00028R-Ih for submit@debbugs.gnu.org; Fri, 28 May 2010 18:31:02 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:35767) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OI84w-0002eO-FR for submit@debbugs.gnu.org; Fri, 28 May 2010 18:30:58 -0400 Original-Received: from [140.186.70.92] (port=41975 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OI84v-000864-3c for bug-gnu-emacs@gnu.org; Fri, 28 May 2010 18:30:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OI84t-0004JY-N9 for bug-gnu-emacs@gnu.org; Fri, 28 May 2010 18:30:56 -0400 Original-Received: from mail-yw0-f191.google.com ([209.85.211.191]:64695) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OI84t-0004JN-KC for bug-gnu-emacs@gnu.org; Fri, 28 May 2010 18:30:55 -0400 Original-Received: by ywh29 with SMTP id 29so1188573ywh.27 for ; Fri, 28 May 2010 15:30:53 -0700 (PDT) Original-Received: by 10.150.188.9 with SMTP id l9mr2332531ybf.109.1275085853478; Fri, 28 May 2010 15:30:53 -0700 (PDT) Original-Received: by 10.151.143.21 with HTTP; Fri, 28 May 2010 15:30:53 -0700 (PDT) X-Google-Sender-Auth: rOdQAWYDvp-HmA_WYx2JwKdWPEw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 28 May 2010 18:32:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37375 Archived-At: 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\