X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/blobdiff_plain/12408a1b16c3ce5b7e203bec879ceb3d67ae09a8..d5efc78afe35c0cdd3b43799024062d31edb61c6:/openssh/openbsd-compat/getcwd.c diff --git a/openssh/openbsd-compat/getcwd.c b/openssh/openbsd-compat/getcwd.c index 19be591..de3bacc 100644 --- a/openssh/openbsd-compat/getcwd.c +++ b/openssh/openbsd-compat/getcwd.c @@ -1,5 +1,3 @@ -/* OPENBSD ORIGINAL: lib/libc/gen/getcwd.c */ - /* * Copyright (c) 1989, 1991, 1993 * The Regents of the University of California. All rights reserved. @@ -12,9 +10,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. Neither the name of the University nor the names of its contributors - * may be used to endorse or promote products derived from this software - * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE @@ -29,12 +24,12 @@ * SUCH DAMAGE. */ -#include "includes.h" +#include "config.h" #if !defined(HAVE_GETCWD) #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getcwd.c,v 1.9 2003/06/11 21:03:10 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: getcwd.c,v 1.6 2000/07/19 15:25:13 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -52,7 +47,7 @@ static char rcsid[] = "$OpenBSD: getcwd.c,v 1.9 2003/06/11 21:03:10 deraadt Exp (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) char * -getcwd(char *pt, size_t size) +getcwd(char *pt,size_t size) { register struct dirent *dp; register DIR *dir = NULL; @@ -132,7 +127,7 @@ getcwd(char *pt, size_t size) /* * Build pointer to the parent directory, allocating memory * as necessary. Max length is 3 for "../", the largest - * possible component name, plus a trailing NUL. + * possible component name, plus a trailing NULL. */ if (bup + 3 + MAXNAMLEN + 1 >= eup) { char *nup;