From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4115 Path: news.gmane.org!not-for-mail From: Michael Forney Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] getcwd: Set errno to EINVAL when size == 0 Date: Mon, 07 Oct 2013 16:29:53 -0700 Message-ID: <525343fb.42e5440a.723b.766b@mx.google.com> References: <1381126104-24579-1-git-send-email-mforney@mforney.org> <1381127894.6107.59.camel@eris.loria.fr> <20131007162157.GC20515@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1381188614 413 80.91.229.3 (7 Oct 2013 23:30:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Oct 2013 23:30:14 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4119-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 08 01:30:19 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1VTKFm-00026x-Ol for gllmg-musl@plane.gmane.org; Tue, 08 Oct 2013 01:30:18 +0200 Original-Received: (qmail 30103 invoked by uid 550); 7 Oct 2013 23:30:17 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 30064 invoked from network); 7 Oct 2013 23:30:15 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:references:in-reply-to :mime-version:date:message-id:content-type; bh=I95HN8DYERB/JvVTNuLla5rATVC6jE2c3JBgw4qJnHA=; b=k8p8LpScRxmRhi2tCkH2CiuGWdEQnMnerKhcb5Aw9wCL/Npfw1zPqJeQEJ20F/eCr0 PF09JH4g7cCwvBiGk2EeaAwXHTvDTGGv5N0Pe6rfbixJUyVSsgGjA9weKSZYzhXpKvL1 rUQsKspqrKsMcI7/PfUgP1lRWotqQPSXAno98fTxULhF5cZASB9YFHqpEPPuHA1V6Hzv 2f4g1i2TeBiAcfl39Uhcl+GBhWx+D7U0++6xfeBW9Dckz3FjhQe/P52eNg9WEhlY70Ye xXMcyB0drUoGm3zrkcMajpyvv+iRd/XBkZS0Kn4Vj6+42tjam/fARdUpWjO0LsK5HRsA CSqQ== X-Gm-Message-State: ALoCoQnSax1Qk7IpOYHTWX+3Aswkcl+hyAQJhZc/0QOxxlul9i2//Z+MK8HLLxXYpTscR/7QWoK+ X-Received: by 10.66.196.168 with SMTP id in8mr139051pac.18.1381188603836; Mon, 07 Oct 2013 16:30:03 -0700 (PDT) In-Reply-To: <20131007162157.GC20515@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:4115 Archived-At: On Mon, 07 Oct 2013 12:21:57 -0400, Rich Felker wrote: > In principle the kernel should be generating the EINVAL if size is 0, > but maybe it does the wrong thing...? Yeah, from what I could tell, it returns ERANGE in all cases where it can't fit the cwd into the buffer. -- Michael Forney