Subject: bug#37445: 27.0.50; Permission denied after make install

From: Eli Zaretskii <[email-masked]>
Date: Fri, 20 Sep 2019 10:00:37 +0300

> From: Tino Calancha <[email-masked]>
> Date: Fri, 20 Sep 2019 06:07:54 +0000 (UTC)
> Cc: [email-masked], Tino Calancha <[email-masked]>
> 
> # Add (require 'ert) at the botton: this seems to fire the issue
> $ echo "(require 'ert)" >> .emacs
> 
> # Now launch Emacs: you will see at *Warnings* buffer
> # File error: Testing file, Permission denied, /home/ec2-user/soft/emacs-master/src
> 
> # Now, if you want you can try:
> M-: (require 'ert) RET
> Testing file: Permission denied, /home/ec2-user/soft/emacs-master/src

Can you show the C and Lisp backtraces for that error?  You can run
Emacs under GDB with a breakpoint on this line of fileio.c:

  static Lisp_Object
  file_metadata_errno (char const *action, Lisp_Object file, int err)
  {
    if (err == ENOENT || err == ENOTDIR || err == 0)
      return Qnil;
    report_file_errno (action, file, err);  <<<<<<<<<<<<<<<<<<<<<<<<<<
  }

Thanks.