DragonFly bugs List (threaded) for 2009-06
DragonFly BSD
DragonFly bugs List (threaded) for 2009-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1394] [PATCH] getcwd(3) returns wrong error codes


From: "Stathis Kamperis \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 04 Jun 2009 14:00:17 +0000

New submission from Stathis Kamperis <ekamperi@gmail.com>:

Salute.

getcwd(3) returns EINVAL if the supplied buffer length is 0 or 1 and ENOMEM
(duh!) if the length is greater than 1 but can't hold pathname + 1.

POSIX expects getcwd() to return EINVAL if length is 0 and ERANGE if length is
greater than 0 but less than pathname + 1.

I attach a patch to review.  I've built a kernel and running it at the moment.
So far nothing bro

----------
assignedto: Beket
files: getcwd.diff
messages: 6722
nosy: Beket
priority: bug
status: unread
title: [PATCH] getcwd(3) returns wrong error codes

_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1394>
_____________________________________________________

Attachment: getcwd.diff
Description: Binary data



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]