Subject: bin/35194: getconf should check for 0, not -1, in its confstr() call
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <guy@alum.mit.edu>
List: netbsd-bugs
Date: 12/06/2006 10:15:00
>Number:         35194
>Category:       bin
>Synopsis:       getconf should check for 0, not -1, in its confstr() call
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 06 10:15:00 +0000 2006
>Originator:     Guy Harris
>Release:        -current
>Organization:
>Environment:
>Description:
confstr() was recently changed to return 0, not -1, on errors, as that's what the Single UNIX Specification requires.

As pointed out in response to bug mail I sent for another BSD on confstr(), the getconf command needs to be changed to check for 0, not -1, when checking for confstr() errors.
>How-To-Repeat:

>Fix: