Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <525343fb.42e5440a.723b.766b@mx.google.com>
Date: Mon, 07 Oct 2013 16:29:53 -0700
From: Michael Forney <mforney@...rney.org>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] getcwd: Set errno to EINVAL when size == 0

On Mon, 07 Oct 2013 12:21:57 -0400, Rich Felker <dalias@...ifal.cx> 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 <mforney@...rney.org>

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.