diff options
Diffstat (limited to 'openbsd-compat/getcwd.c')
-rw-r--r-- | openbsd-compat/getcwd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/openbsd-compat/getcwd.c b/openbsd-compat/getcwd.c index f4b98e824..31d1cfe93 100644 --- a/openbsd-compat/getcwd.c +++ b/openbsd-compat/getcwd.c | |||
@@ -10,6 +10,9 @@ | |||
10 | * 2. Redistributions in binary form must reproduce the above copyright | 10 | * 2. Redistributions in binary form must reproduce the above copyright |
11 | * notice, this list of conditions and the following disclaimer in the | 11 | * notice, this list of conditions and the following disclaimer in the |
12 | * documentation and/or other materials provided with the distribution. | 12 | * documentation and/or other materials provided with the distribution. |
13 | * 3. Neither the name of the University nor the names of its contributors | ||
14 | * may be used to endorse or promote products derived from this software | ||
15 | * without specific prior written permission. | ||
13 | * | 16 | * |
14 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | 17 | * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
15 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 18 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
@@ -29,7 +32,7 @@ | |||
29 | #if !defined(HAVE_GETCWD) | 32 | #if !defined(HAVE_GETCWD) |
30 | 33 | ||
31 | #if defined(LIBC_SCCS) && !defined(lint) | 34 | #if defined(LIBC_SCCS) && !defined(lint) |
32 | static char rcsid[] = "$OpenBSD: getcwd.c,v 1.7 2002/11/24 01:52:27 cloder Exp $"; | 35 | static char rcsid[] = "$OpenBSD: getcwd.c,v 1.9 2003/06/11 21:03:10 deraadt Exp $"; |
33 | #endif /* LIBC_SCCS and not lint */ | 36 | #endif /* LIBC_SCCS and not lint */ |
34 | 37 | ||
35 | #include <sys/param.h> | 38 | #include <sys/param.h> |
@@ -47,7 +50,7 @@ static char rcsid[] = "$OpenBSD: getcwd.c,v 1.7 2002/11/24 01:52:27 cloder Exp $ | |||
47 | (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) | 50 | (dp->d_name[1] == '.' && dp->d_name[2] == '\0'))) |
48 | 51 | ||
49 | char * | 52 | char * |
50 | getcwd(char *pt,size_t size) | 53 | getcwd(char *pt, size_t size) |
51 | { | 54 | { |
52 | register struct dirent *dp; | 55 | register struct dirent *dp; |
53 | register DIR *dir = NULL; | 56 | register DIR *dir = NULL; |