From e73b3e19e145857fdca1c873ba7fc621c373306b Mon Sep 17 00:00:00 2001 From: otto <> Date: Wed, 30 Mar 2005 07:33:57 +0000 Subject: [PATCH] Do not promise anything about the contents of resolved on failure. ok millert@ --- src/lib/libc/stdlib/realpath.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/libc/stdlib/realpath.3 b/src/lib/libc/stdlib/realpath.3 index c178f0a9..4fc04907 100644 --- a/src/lib/libc/stdlib/realpath.3 +++ b/src/lib/libc/stdlib/realpath.3 @@ -28,7 +28,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: realpath.3,v 1.11 2005/03/29 19:34:14 brad Exp $ +.\" $OpenBSD: realpath.3,v 1.12 2005/03/30 07:33:57 otto Exp $ .\" .Dd February 16, 1994 .Dt REALPATH 3 @@ -81,10 +81,10 @@ on success. If an error occurs, .Fn realpath returns -.Dv NULL , -and +.Dv NULL +and the contents of .Fa resolved -contains the pathname which caused the problem. +are undefined. .Sh ERRORS The function .Fn realpath