From: Paul Eggert <eggert@cs.ucla.edu>
To: Alan Third <alan@idiocy.org>, Eli Zaretskii <eliz@gnu.org>
Cc: Vincent Zhang <vincent_chueng@hotmail.com>, 29231@debbugs.gnu.org
Subject: bug#29231: 26.0.90; invald file name for symbolic files
Date: Sat, 11 Nov 2017 15:21:26 -0800 [thread overview]
Message-ID: <eb69330d-417b-eaf2-51e2-a84b68d3dd1a@cs.ucla.edu> (raw)
In-Reply-To: <20171111182520.GA5075@breton.holly.idiocy.org>
Alan Third wrote:
> Only with symlinks faccessat returns success if it’s pointing to a
> file and you put ‘/’ on the end.
This is a well-known problem on macOS, and Emacs is supposed to compile a
replacement fstatat function by building lib/fstatat.o and linking to that, and
this replacement is supposed to implement the POSIX-required behavior where a
trailing / works only on directories (or symlinks to directories, if following
symlinks).
Evidently this replacement procedure is not working somehow. Please tell us
whether the executable contains an fstatat workaround. You can do that via
something like this:
$ gdb src/temacs
(gdb) disas rpl_fstatat
and I'd like to see the output of the 'disas' command.
Also, what are the values of the following macros in src/config.h? (The values
on GNU/Linux are as shown.)
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
#define HAVE_FSTATAT 1
/* #undef HAVE_WORKING_FSTATAT_ZERO_FLAG */
next prev parent reply other threads:[~2017-11-11 23:21 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-09 17:41 bug#29231: 26.0.90; invald file name for symbolic files Vincent Zhang
2017-11-09 20:17 ` Eli Zaretskii
2017-11-10 2:49 ` Vincent Zhang
2017-11-10 8:13 ` Eli Zaretskii
2017-11-10 10:10 ` Vincent Zhang
2017-11-11 8:54 ` Eli Zaretskii
2017-11-11 18:25 ` Alan Third
2017-11-11 19:00 ` Eli Zaretskii
2017-11-11 23:21 ` Paul Eggert [this message]
2017-11-12 7:19 ` Paul Eggert
2017-11-12 12:09 ` Alan Third
2017-11-13 2:53 ` Vincent Zhang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=eb69330d-417b-eaf2-51e2-a84b68d3dd1a@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=29231@debbugs.gnu.org \
--cc=alan@idiocy.org \
--cc=eliz@gnu.org \
--cc=vincent_chueng@hotmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).