Subject: CVS commit: [netbsd-3] src/lib/libc/gen
To: None <source-changes@NetBSD.org>
From: Jeff Rizzo <firstname.lastname@example.org>
Date: 08/14/2005 22:08:44
Module Name: src
Committed By: riz
Date: Sun Aug 14 22:08:44 UTC 2005
src/lib/libc/gen [netbsd-3]: getcwd.c
Pull up revisions 1.37-1.40 (requested by elad in ticket #648):
Make realpath(3) work correctly.
The current code resolves paths like `/foo/bar/', `/foo/bar/./', and
`/foo/bar/../', even if `bar' is a regular file and not a directory.
Reviewed by cube@.
Fixes to previous:
- Don't handle single and multiple slashes differently.
- A symlink to a directory can be appear in the middle of path. Don't
Don't allow last path element to be nonexistant.
Make this compile again (remove unused serrno).
Noted by uwe@.
To generate a diff of this commit:
cvs rdiff -r1.36 -r22.214.171.124 src/lib/libc/gen/getcwd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.