From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#30350: 27.0.50; Newest master can't run processes on macOS Date: Mon, 5 Feb 2018 15:56:52 -0800 Organization: UCLA Computer Science Department Message-ID: <0bec28a7-e163-8e7c-3759-4189533f50b6@cs.ucla.edu> References: <616d413a-893c-a058-9620-0ac852fc8490@cs.ucla.edu> <20180205191824.GA64467@breton.holly.idiocy.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------C2AE12290DEF15EFB694E411" X-Trace: blaine.gmane.org 1517874920 26230 195.159.176.226 (5 Feb 2018 23:55:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Feb 2018 23:55:20 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 Cc: 30350@debbugs.gnu.org, Philipp , Sam Steingold To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 06 00:55:15 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiqbN-0006A7-AC for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Feb 2018 00:55:09 +0100 Original-Received: from localhost ([::1]:53715 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiqdO-0001V5-Fp for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Feb 2018 18:57:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiqdG-0001US-Rn for bug-gnu-emacs@gnu.org; Mon, 05 Feb 2018 18:57:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eiqdC-0001VA-Un for bug-gnu-emacs@gnu.org; Mon, 05 Feb 2018 18:57:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51324) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eiqdC-0001Ut-PU for bug-gnu-emacs@gnu.org; Mon, 05 Feb 2018 18:57:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eiqdC-0001Im-AH for bug-gnu-emacs@gnu.org; Mon, 05 Feb 2018 18:57:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Feb 2018 23:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30350 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 30350-submit@debbugs.gnu.org id=B30350.15178750214997 (code B ref 30350); Mon, 05 Feb 2018 23:57:02 +0000 Original-Received: (at 30350) by debbugs.gnu.org; 5 Feb 2018 23:57:01 +0000 Original-Received: from localhost ([127.0.0.1]:59221 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiqdA-0001IX-PR for submit@debbugs.gnu.org; Mon, 05 Feb 2018 18:57:00 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:35400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiqd9-0001IL-DH for 30350@debbugs.gnu.org; Mon, 05 Feb 2018 18:56:59 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B848A160D39; Mon, 5 Feb 2018 15:56:53 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 7DFaDUTthKgV; Mon, 5 Feb 2018 15:56:53 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 09A44160E18; Mon, 5 Feb 2018 15:56:53 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id owPTpZLgOLI9; Mon, 5 Feb 2018 15:56:52 -0800 (PST) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D5CB2160D39; Mon, 5 Feb 2018 15:56:52 -0800 (PST) In-Reply-To: <20180205191824.GA64467@breton.holly.idiocy.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:142954 Archived-At: This is a multi-part message in MIME format. --------------C2AE12290DEF15EFB694E411 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 02/05/2018 11:18 AM, Alan Third wrote: > > Yes, it fixes the problem here. > > Is this a known issue with macOS? It's news to me and it's not listed in the Gnulib portability gotcha list. What happens if you run the attached program on macOS? It creates a file "file" and then tries to access it as a directory, which should not work. --------------C2AE12290DEF15EFB694E411 Content-Type: text/x-csrc; name="tryit.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tryit.c" #include #include #include #include #include static char const *names[] = { "file/", "file/.", "file/./" }; int main (void) { struct stat st; int i; if (open ("file", O_WRONLY | O_CREAT, 0666) < 0) return perror ("file"), 1; int status = 0; for (i = 0; i < 3; i++) { char const *name = names[i]; if (lstat (name, &st) == 0) printf ("lstat succeeds on \"%s\"!\n", name), status = 1; else if (errno != ENOTDIR) perror (name), status = 1; if (faccessat (AT_FDCWD, name, F_OK, AT_EACCESS) == 0) printf ("faccessat succeeds on \"%s\"!\n", name), status = 1; else if (errno != ENOTDIR) perror (name), status = 1; } return status; } --------------C2AE12290DEF15EFB694E411--