diff options
-rw-r--r-- | lib/libc/gen/fts.c | 8 | ||||
-rw-r--r-- | lib/libc/gen/opendir.c | 3 |
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/gen/fts.c b/lib/libc/gen/fts.c index cfec7796178..c8668c3cee3 100644 --- a/lib/libc/gen/fts.c +++ b/lib/libc/gen/fts.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fts.c,v 1.17 1998/08/14 21:39:24 deraadt Exp $ */ +/* $OpenBSD: fts.c,v 1.18 1998/08/15 08:10:15 deraadt Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94"; #else -static char rcsid[] = "$OpenBSD: fts.c,v 1.17 1998/08/14 21:39:24 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: fts.c,v 1.18 1998/08/15 08:10:15 deraadt Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -998,10 +998,10 @@ fts_palloc(sp, more) if (sp->fts_path) free(sp->fts_path); sp->fts_path = NULL; - return (0); + return (1); } sp->fts_path = p; - return (1); + return (0); } /* diff --git a/lib/libc/gen/opendir.c b/lib/libc/gen/opendir.c index 49948b40354..dabafe3bfe1 100644 --- a/lib/libc/gen/opendir.c +++ b/lib/libc/gen/opendir.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: opendir.c,v 1.5 1998/08/14 21:39:31 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: opendir.c,v 1.6 1998/08/15 08:10:14 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -144,6 +144,7 @@ __opendir2(name, flags) close(fd); return (NULL); } + buf = nbuf; ddptr = buf + (len - space); } |