From 88ce7257815cd09e37845874a44eea003bc8bd9b Mon Sep 17 00:00:00 2001 From: Maxim Konovalov Date: Sun, 3 Dec 2006 08:22:36 +0000 Subject: [PATCH] o As POSIX requires confstr(3) returns zero on errors, not -1. PR: misc/106234 Submitted by: Guy Harris MFC after: 1 week --- lib/libc/gen/confstr.3 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/gen/confstr.3 b/lib/libc/gen/confstr.3 index 63440591bdf5..ee31bd31fd79 100644 --- a/lib/libc/gen/confstr.3 +++ b/lib/libc/gen/confstr.3 @@ -32,7 +32,7 @@ .\" @(#)confstr.3 8.1 (Berkeley) 6/4/93 .\" $FreeBSD$ .\" -.Dd June 18, 2001 +.Dd December 3, 2006 .Dt CONFSTR 3 .Os .Sh NAME @@ -92,7 +92,7 @@ environment variable that finds all the standard utilities. .Sh RETURN VALUES If the call to .Fn confstr -is not successful, \-1 is returned and +is not successful, 0 is returned and .Va errno is set appropriately. Otherwise, if the variable does not have a configuration defined value,