From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 72610 invoked by alias); 7 Jan 2018 15:53:35 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 72601 invoked by uid 89); 7 Jan 2018 15:53:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Hx-languages-length:519 X-HELO: mailbackend.panix.com X-Gm-Message-State: AKGB3mIrUzEtGCaEZT1VRl4FoucfRFkp3cbfPfWOIAdUxDXgYzYe5/eJ tESTogLe2ARY9LhRyyLzUhNB1gR/CQ5qCXKkCOw= X-Google-Smtp-Source: ACJfBotusIciKAeqKtWmPQm7sHw97I5aFHkqKVNeY2ij8F0QU5UL9WGZ63nI+3WbKqwXRzmIPPddxtPbfuvbuSmaFPs= X-Received: by 10.202.228.5 with SMTP id b5mr4758134oih.249.1515340410582; Sun, 07 Jan 2018 07:53:30 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <87shbhvp0l.fsf@linux-m68k.org> References: <20180107030543.GA7248@altlinux.org> <20180107113348.GA11932@altlinux.org> <87shbhvp0l.fsf@linux-m68k.org> From: Zack Weinberg Date: Sun, 07 Jan 2018 15:53:00 -0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] linux: make getcwd(3) fail if it cannot obtain an absolute path [BZ #22679] To: Andreas Schwab Cc: GNU C Library Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-01/txt/msg00220.txt.bz2 On Sun, Jan 7, 2018 at 7:20 AM, Andreas Schwab wrote: > On Jan 07 2018, "Dmitry V. Levin" wrote: > >> Sure, but the generic getcwd sets errno to ENOENT in this case. >> Do you suppose that ENOENT is more appropriate than EACCES? > > Yes, the anchor no longer exists. http://pubs.opengroup.org/onlinepubs/9699919799/functions/getcwd.html does not license getcwd to fail with ENOENT. zw