> If an error occurs, realpath() returns NULL, > and resolvedname was not allocated by realpath(), > it will contain the pathname which caused the problem. Had to read it thrice before it made sense. Maybe this is slightly better:
--- lib/libc/gen/realpath.3.orig +++ lib/libc/gen/realpath.3 @@ -88,8 +88,8 @@ on success. If an error occurs, .Fn realpath returns -.Dv NULL , -and +.Dv NULL ; +if .Fa resolvedname was not allocated by .Fn realpath ,