Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen a sequel to getcwd.c revision 1.52 and realpath...



details:   https://anonhg.NetBSD.org/src/rev/297b2b49f086
branches:  trunk
changeset: 785227:297b2b49f086
user:      soda <soda%NetBSD.org@localhost>
date:      Tue Mar 05 02:46:33 2013 +0000

description:
a sequel to getcwd.c revision 1.52 and realpath.3 revision 1.13 by christos:
explicitly mention that NULL is allowed as second argument
in the description part as well.

PR/46618: Onno van der Linden: realpath(3) isn't SUSv4 compliant (and causes
flactag 2.0.4 to dump core). Fix to accept a NULL argument for resolvedpath.

diffstat:

 lib/libc/gen/realpath.3 |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 7fc9aa687ab4 -r 297b2b49f086 lib/libc/gen/realpath.3
--- a/lib/libc/gen/realpath.3   Tue Mar 05 02:04:10 2013 +0000
+++ b/lib/libc/gen/realpath.3   Tue Mar 05 02:46:33 2013 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: realpath.3,v 1.14 2012/06/21 21:35:25 wiz Exp $
+.\"    $NetBSD: realpath.3,v 1.15 2013/03/05 02:46:33 soda Exp $
 .\"
 .\" Copyright (c) 1994
 .\"    The Regents of the University of California.  All rights reserved.
@@ -65,7 +65,8 @@
 .Em must
 refer to a buffer capable of storing at least
 .Dv MAXPATHLEN
-characters.
+characters, or be
+.Dv NULL .
 .Pp
 The
 .Fn realpath



Home | Main Index | Thread Index | Old Index