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/getcap.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -p -r1.9 -r1.10 --- src/lib/libc/gen/getcap.c 1995/02/25 13:41:26 1.9 +++ src/lib/libc/gen/getcap.c 1995/08/24 05:26:35 1.10 @@ -1,4 +1,4 @@ -/* $NetBSD: getcap.c,v 1.9 1995/02/25 13:41:26 cgd Exp $ */ +/* $NetBSD: getcap.c,v 1.10 1995/08/24 05:26:35 mycroft Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -40,7 +40,7 @@ #if 0 static char sccsid[] = "@(#)getcap.c 8.3 (Berkeley) 3/25/94"; #else -static char rcsid[] = "$NetBSD: getcap.c,v 1.9 1995/02/25 13:41:26 cgd Exp $"; +static char rcsid[] = "$NetBSD: getcap.c,v 1.10 1995/08/24 05:26:35 mycroft Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -276,10 +276,7 @@ getent(cap, len, db_array, fd, name, dep fd = open(*db_p, O_RDONLY, 0); if (fd < 0) { /* No error on unfound file. */ - if (errno == ENOENT) - continue; - free(record); - return (-2); + continue; } myfd = 1; }