Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libc/gen/getcwd.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -p -r1.43 -r1.44 --- src/lib/libc/gen/getcwd.c 2006/03/17 17:17:00 1.43 +++ src/lib/libc/gen/getcwd.c 2007/06/03 17:39:26 1.44 @@ -1,4 +1,4 @@ -/* $NetBSD: getcwd.c,v 1.43 2006/03/17 17:17:00 christos Exp $ */ +/* $NetBSD: getcwd.c,v 1.44 2007/06/03 17:39:26 christos Exp $ */ /* * Copyright (c) 1989, 1991, 1993, 1995 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)getcwd.c 8.5 (Berkeley) 2/7/95"; #else -__RCSID("$NetBSD: getcwd.c,v 1.43 2006/03/17 17:17:00 christos Exp $"); +__RCSID("$NetBSD: getcwd.c,v 1.44 2007/06/03 17:39:26 christos Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -200,6 +200,12 @@ loop: goto loop; } + +#ifdef _FORTIFY_SOURCE +#undef getcwd +#define getcwd _getcwd +#endif + char * getcwd(char *pt, size_t size) {