diff options
Diffstat (limited to 'lib/libc/gen/getcap.c')
-rw-r--r-- | lib/libc/gen/getcap.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libc/gen/getcap.c b/lib/libc/gen/getcap.c index aaee0dd..90fbd18 100644 --- a/lib/libc/gen/getcap.c +++ b/lib/libc/gen/getcap.c @@ -267,13 +267,8 @@ getent(cap, len, db_array, fd, name, depth, nfield) return (retval); } else { fd = open(*db_p, O_RDONLY, 0); - if (fd < 0) { - /* No error on unfound file. */ - if (errno == ENOENT) - continue; - free(record); - return (-2); - } + if (fd < 0) + continue; myfd = 1; } } |