summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/realpath.c
AgeCommit message (Collapse)Author
2013-04-05- Add comments regarding copies of these files also in libexec/ld.soKurt Miller
okay guenther@
2012-09-13specify the bounds of the dst to strlcat (both values were static andTheo de Raadt
equal, but it is more correct) from Michal Mazurek
2011-07-24Recent Single Unix will malloc memory if the second argument of realpath()Miod Vallat
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.
2005-08-08zap remaining rcsid.Marc Espie
Kill old files that are no longer compiled. okay theo
2005-03-29Make realpath() thread-safe. New implementation does not use chdir(2) at all.Brad Smith
From: FreeBSD by Constantin S. Svintsoff <kostik (at) iclub.nsu.ru> ok otto@ millert@
2004-11-30Check strlc{py,at} return value and return NULL upon truncation insteadTodd C. Miller
of silently truncating. OK deraadt@ otto@
2003-08-01Rename rootd to needslash and invert its value. This fixes the checkTodd C. Miller
for ENAMETOOLONG, though since we use strlcpy() and strlcat() this is not a big deal. Problem found by vincent@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-04strcat -> strlcatHans Insulander
ok deraadt@ tedu@ tdeval@
2002-05-24try to use strlcpy and snprintf more; ok variousTheo de Raadt
2002-01-12If the user passes in "" as the string to resolve the lstat() willTodd C. Miller
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.
2001-06-27use strlcpy vs strncpy+a[len-1]='\0'. millert@ ok.lebel
1998-05-18readlink(path, buf, sizeof buf-1). Never forget that -1.Theo de Raadt
1997-06-20add ELOOP support; shigio@wafu.netgate.netTheo de Raadt
1996-08-19Fix RCS idsThorsten Lockert
Make sure everything uses {SYS,}LIBC_SCCS properly
1995-10-18initial import of NetBSD treeTheo de Raadt