GNU bug report logs -
#13702
24.3.50; dired-do-rename: Mysterious error "(file-error Getting ACL no such file or directory <existing file>)"
Previous Next
Reported by: Carsten Bormann <cabo <at> tzi.org>
Date: Tue, 12 Feb 2013 21:53:02 UTC
Severity: normal
Found in version 24.3.50
Done: Romain Francoise <romain <at> orebokech.com>
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 13702 in the body.
You can then email your comments to 13702 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13702
; Package
emacs
.
(Tue, 12 Feb 2013 21:53:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Carsten Bormann <cabo <at> tzi.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 12 Feb 2013 21:53:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
In dired, R (rename) a file from a local directory to an NFS mounted
directory. The error is:
Move `/Users/cabo/demo0/y' to `/net/ull.local/Volumes/buf2b/demo1/y' failed:
(file-error Getting ACL no such file or directory /Users/cabo/demo0/y)
The file very well does exist. *Directories* can be moved with R,
just files can't. The file can be moved locally between directories
or from one NFS mounted directory to another NFS mounted directory.
Just not from a local filesystem to the NFS mounted directory
or the other way around. (System command "mv" succeeds.)
(Unfortunately, the error is hidden from "Enter Debugger on Error", so
I didn't investigate further.)
In GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2013-02-01 on bob.porkrind.org
Bzr revision: 111648 michael.albinus <at> gmx.de-20130201072810-qnugwjqswcupa1wx
Windowing system distributor `Apple', version 10.3.1187
Configured using:
`configure --host=x86_64-apple-darwin --build=i686-apple-darwin
--with-ns'
Important settings:
value of $LC_CTYPE: UTF-8
locale-coding-system: utf-8-unix
default enable-multibyte-characters: t
Major mode: Dired by name
Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Recent input:
C-x C-f . <return> R / n e t / u l l . l o c a l / V o l <tab> b u f 2
b / d e m o 1 / <return> <menu-bar> <help-menu> <send-emacs-bug-report>
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
ls does not support --dired; see `dired-use-ls-dired' for more details.
Move `/Users/cabo/demo0/y' to `/net/ull.local/Volumes/buf2b/demo1/y' failed:
(file-error Getting ACL no such file or directory /Users/cabo/demo0/y)
Load-path shadows:
None found.
Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils dired-aux dired time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list newcomment lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process ns multi-tty emacs)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13702
; Package
emacs
.
(Tue, 12 Feb 2013 23:48:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 13702 <at> debbugs.gnu.org (full text, mbox):
Carsten Bormann wrote:
> In dired, R (rename) a file from a local directory to an NFS mounted
> directory. The error is:
>
> Move `/Users/cabo/demo0/y' to `/net/ull.local/Volumes/buf2b/demo1/y' failed:
> (file-error Getting ACL no such file or directory /Users/cabo/demo0/y)
FWIW, works fine for me with current trunk on GNU/Linux.
> In GNU Emacs 24.3.50.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
> of 2013-02-01 on bob.porkrind.org
> Bzr revision: 111648 michael.albinus <at> gmx.de-20130201072810-qnugwjqswcupa1wx
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13702
; Package
emacs
.
(Wed, 13 Feb 2013 09:40:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 13702 <at> debbugs.gnu.org (full text, mbox):
Carsten Bormann <cabo <at> tzi.org> writes:
> Move `/Users/cabo/demo0/y' to `/net/ull.local/Volumes/buf2b/demo1/y' failed:
> (file-error Getting ACL no such file or directory /Users/cabo/demo0/y)
Thanks for the report. Google suggests that on Darwin, getting ENOENT from
acl_get_fd() means that the associated file doesn't have an ACL:
http://lists.apple.com/archives/darwin-dev/2009/Jan/msg00001.html
So the following patch will probably fix things for you:
diff --git a/src/fileio.c b/src/fileio.c
index 89ad339..29c8bf5 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2090,7 +2090,7 @@ entries (depending on how Emacs was built). */)
#ifdef HAVE_POSIX_ACL
acl = acl_get_fd (ifd);
- if (acl == NULL && errno != ENOTSUP)
+ if (acl == NULL && errno != ENOTSUP && errno != ENOENT)
report_file_error ("Getting ACL", Fcons (file, Qnil));
#endif
}
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13702
; Package
emacs
.
(Wed, 13 Feb 2013 16:09:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 13702 <at> debbugs.gnu.org (full text, mbox):
> From: Romain Francoise <romain <at> orebokech.com>
> Date: Wed, 13 Feb 2013 10:39:20 +0100
> Cc: 13702 <at> debbugs.gnu.org
>
> --- a/src/fileio.c
> +++ b/src/fileio.c
> @@ -2090,7 +2090,7 @@ entries (depending on how Emacs was built). */)
>
> #ifdef HAVE_POSIX_ACL
> acl = acl_get_fd (ifd);
> - if (acl == NULL && errno != ENOTSUP)
> + if (acl == NULL && errno != ENOTSUP && errno != ENOENT)
> report_file_error ("Getting ACL", Fcons (file, Qnil));
> #endif
> }
Unless other platforms have the same issue, I'd suggest that the
comparison against ENOENT be conditioned on Darwin.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13702
; Package
emacs
.
(Thu, 14 Feb 2013 22:43:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 13702 <at> debbugs.gnu.org (full text, mbox):
Many other error numbers should be checked for.
Here's what Gnulib's acl-internal.h says on the subject, right now:
/* Recognize some common errors such as from an NFS mount that does
not support ACLs, even when local drives do. */
#if defined __APPLE__ && defined __MACH__ /* Mac OS X */
# define ACL_NOT_WELL_SUPPORTED(Err) \
((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY || (Err) == ENOENT)
#elif defined EOPNOTSUPP /* Tru64 NFS */
# define ACL_NOT_WELL_SUPPORTED(Err) \
((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY || (Err) == EOPNOTSUPP)
#else
# define ACL_NOT_WELL_SUPPORTED(Err) \
((Err) == ENOTSUP || (Err) == ENOSYS || (Err) == EINVAL || (Err) == EBUSY)
#endif
Maybe Emacs should steal this macro. Or we can change Gnulib
to publish it and then use the relevant Gnulib module.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13702
; Package
emacs
.
(Fri, 15 Feb 2013 19:27:01 GMT)
Full text and
rfc822 format available.
Message #20 received at 13702 <at> debbugs.gnu.org (full text, mbox):
Paul Eggert <eggert <at> cs.ucla.edu> writes:
> Or we can change Gnulib to publish it and then use the relevant Gnulib
> module.
It looks useful for any project using ACL, so that would probably be best.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13702
; Package
emacs
.
(Sat, 30 Mar 2013 10:07:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 13702 <at> debbugs.gnu.org (full text, mbox):
Hi,
Has any progress been made towards making gnulib's ACL_NOT_WELL_SUPPORTED
macro public? If not, I'll just add a duplicated definition in Emacs.
Thanks.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13702
; Package
emacs
.
(Sat, 30 Mar 2013 16:56:01 GMT)
Full text and
rfc822 format available.
Message #26 received at 13702 <at> debbugs.gnu.org (full text, mbox):
On 03/30/13 03:04, Romain Francoise wrote:
> Has any progress been made towards making gnulib's ACL_NOT_WELL_SUPPORTED
> macro public? If not, I'll just add a duplicated definition in Emacs.
No progress, so a duplicate definition may be the way to go for now.
Please add a FIXME comment for it, though. Thanks.
Reply sent
to
Romain Francoise <romain <at> orebokech.com>
:
You have taken responsibility.
(Sun, 07 Apr 2013 11:32:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Carsten Bormann <cabo <at> tzi.org>
:
bug acknowledged by developer.
(Sun, 07 Apr 2013 11:32:02 GMT)
Full text and
rfc822 format available.
Message #31 received at 13702-done <at> debbugs.gnu.org (full text, mbox):
This is now fixed in trunk as of revision 112244:
2013-04-07 Romain Francoise <romain <at> orebokech.com>
Ignore additional platform-specific ACL errors (Bug#13702).
* fileio.c (ACL_NOT_WELL_SUPPORTED): New macro copied from gnulib.
(Fcopy_file, Fset_file_acl) [HAVE_POSIX_ACL]: Use it.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13702
; Package
emacs
.
(Sun, 07 Apr 2013 16:25:02 GMT)
Full text and
rfc822 format available.
Message #34 received at 13702 <at> debbugs.gnu.org (full text, mbox):
> From: Romain Francoise <romain <at> orebokech.com>
> Date: Sun, 07 Apr 2013 13:27:18 +0200
>
> This is now fixed in trunk as of revision 112244:
>
> 2013-04-07 Romain Francoise <romain <at> orebokech.com>
>
> Ignore additional platform-specific ACL errors (Bug#13702).
> * fileio.c (ACL_NOT_WELL_SUPPORTED): New macro copied from gnulib.
> (Fcopy_file, Fset_file_acl) [HAVE_POSIX_ACL]: Use it.
Careful: in Emacs, HAVE_POSIX_ACL is defined on MS-Windows as well,
but the gnulib module from which you copied the macro does not support
MS-Windows, AFAICS. I added a suitable definition for Windows.
Thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 06 May 2013 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 15 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.