From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12782 Path: news.gmane.org!.POSTED!not-for-mail From: Patrick Oppenlander Newsgroups: gmane.linux.lib.musl.general Subject: Re: Some questions Date: Mon, 30 Apr 2018 15:29:39 +1000 Message-ID: References: <20180430031653.GI1392@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1525066068 26861 195.159.176.226 (30 Apr 2018 05:27:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Apr 2018 05:27:48 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12798-gllmg-musl=m.gmane.org@lists.openwall.com Mon Apr 30 07:27:44 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fD1Lk-0006sK-5J for gllmg-musl@m.gmane.org; Mon, 30 Apr 2018 07:27:44 +0200 Original-Received: (qmail 13460 invoked by uid 550); 30 Apr 2018 05:29:52 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 13441 invoked from network); 30 Apr 2018 05:29:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=OCnixUb+vYoF8KNwMQXLgjzulpDoqL7mRbVlErTibEI=; b=CrPzKm/y6YPyFDY2we3IL+CYW6GIsCKB7ADZ82cvjXCmivSu/TSCXfo5kOXOG6JKwL VUZf76r/ukyta/1VAHSWd8VixOClDu6W8VA7QENAcIHFfah3RjoNsJz8dywVTizHfB03 0aGraaWQ+oYtEzqk5pXU2VjfwKuwKkamOitNNRoe5t0mWbn6/dD7UPO/84N8uydW/fPl 2IjTwBcHhSSD6SuYGl63c51uyJCvQhjele1jAkb2ik9IyWvUvPHLT6UUCKYjaW/nA1GI XXvre3JTJHgEFt4sN8nPaNZqScM4ZF46+L+Uv8xMDCfk6FAqUmSecjfnO7rZygQ94nG6 GSKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=OCnixUb+vYoF8KNwMQXLgjzulpDoqL7mRbVlErTibEI=; b=VLA/LPcawXHssKRmA4K0kp5JZHh/Sj3H3pOmXJrU6u634LOJ4uOv11k58B7nMqNS0p FDOhqMDffMyfnZn2+/tPW+rKpqIakrBJ57+6oUDuhVllaHGBhZnihD4FgEspisLOhRtB uvJTgvOi7EhO7uZ6K5m1cpfBu8XHzin0ESI7hn/WKbeFhlzwmTR5PpMGlX2ZsfuqXjEf HnUP5efcr6Je9QC8IO9IiBGNMjzNOInaKk6xlvJ68kZoIVMlnCPaaKaqF1W7s173PC+F p/8OobXEneeFXau1CUKF77L7NbwVhRHwO4WDaUzvFMeaBf/WTE+l9soXkDhB7zlnFTWz mX6Q== X-Gm-Message-State: ALQs6tA/LO52LC3CfOUNoVtka4q2FVLJWdrqoB8mI+mBZ7/HLICunJM2 UUu1aK6PFUMdndMcwc09nlhu7kams9ssjGLBecn+bA== X-Google-Smtp-Source: AB8JxZqxSlZ6kP1vdY4SNvTx9ZzCxRC9XJm7f0uy66BAGcCZyg0PhEzniA4VK9sGVcEfQFNgnMJrwBgidMnLNCHpT9I= X-Received: by 10.55.31.2 with SMTP id f2mr9190764qkf.434.1525066179993; Sun, 29 Apr 2018 22:29:39 -0700 (PDT) In-Reply-To: <20180430031653.GI1392@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:12782 Archived-At: On Mon, Apr 30, 2018 at 1:16 PM, Rich Felker wrote: > On Mon, Apr 30, 2018 at 12:52:06PM +1000, Patrick Oppenlander wrote: >> - getcwd returned buffer size can be incorrect. If you call >> getcwd(NULL, 1234) the returned buffer is sized to match the path >> length but should be 1234 to be compatible with the glibc extension. > > I'll look at this. It seems like a worse behavior for most callers, > but maybe it should match. Actually, my biggest issue with getcwd is that it allocates a PATH_MAX sized buffer on the stack. That's painful on deeply embedded stuff. Patrick