summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/realpath.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move to the <limits.h> universe.deraadt2015-01-161-3/+3
| | | | review by millert, binary checking process with doug, concept with guenther
* Revert last commit due to changed semantics found by make release.doug2014-10-191-10/+10
|
* Better POSIX compliance in realpath(3).doug2014-10-181-10/+10
| | | | | | | millert@ made changes to realpath.c based on FreeBSD's version. I merged Todd's changes into dl_realpath.c. ok millert@, guenther@
* - Add comments regarding copies of these files also in libexec/ld.sokurt2013-04-051-1/+3
| | | | okay guenther@
* specify the bounds of the dst to strlcat (both values were static andderaadt2012-09-131-2/+2
| | | | | equal, but it is more correct) from Michal Mazurek
* Recent Single Unix will malloc memory if the second argument of realpath()miod2011-07-241-13/+35
| | | | | | is NULL, and third-party software is starting to rely upon this. Adapted from FreeBSD via Jona Joachim (jaj ; hcl-club , .lu), with minor tweaks from nicm@ and yours truly.
* zap remaining rcsid.espie2005-08-081-9/+1
| | | | | | Kill old files that are no longer compiled. okay theo
* Make realpath() thread-safe. New implementation does not use chdir(2) at all.brad2005-03-291-112/+135
| | | | | | From: FreeBSD by Constantin S. Svintsoff <kostik (at) iclub.nsu.ru> ok otto@ millert@
* Check strlc{py,at} return value and return NULL upon truncation insteadmillert2004-11-301-10/+23
| | | | of silently truncating. OK deraadt@ otto@
* Rename rootd to needslash and invert its value. This fixes the checkmillert2003-08-011-6/+6
| | | | | for ENAMETOOLONG, though since we use strlcpy() and strlcat() this is not a big deal. Problem found by vincent@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* strcat -> strlcathin2003-04-041-3/+3
| | | | ok deraadt@ tedu@ tdeval@
* try to use strlcpy and snprintf more; ok variousderaadt2002-05-241-3/+3
|
* If the user passes in "" as the string to resolve the lstat() willmillert2002-01-121-2/+6
| | | | | | fail anyway so check for that. Also convert "." to "" since that way we avoid the lstat() (which we don't need) and the subsequent chdir() and some dir checks.
* use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel2001-06-271-3/+2
|
* readlink(path, buf, sizeof buf-1). Never forget that -1.deraadt1998-05-181-2/+2
|
* add ELOOP support; shigio@wafu.netgate.netderaadt1997-06-201-1/+6
|
* Fix RCS idstholo1996-08-191-2/+1
| | | | Make sure everything uses {SYS,}LIBC_SCCS properly
* initial import of NetBSD treederaadt1995-10-181-0/+159