diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-11-19 22:53:29 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-11-19 22:53:29 +0000 |
commit | 25e31e72248ad050c8c4c51976cdf2f03642a888 (patch) | |
tree | 7351a7f9b138e807893cc0947424cdf98e7fd227 | |
parent | 8a97758454d85643220e464578ce2bc8cf01c9df (diff) |
Ignore possible errors from select function.
-rw-r--r-- | dirent/scandir.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/dirent/scandir.c b/dirent/scandir.c index ac625d89f3..58a2c7519d 100644 --- a/dirent/scandir.c +++ b/dirent/scandir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. +/* Copyright (C) 1992, 93, 94, 95, 96, 97 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -46,6 +46,9 @@ scandir (dir, namelist, select, cmp) { size_t dsize; + /* Ignore errors from select or readdir */ + __set_errno (0); + if (i == vsize) { struct dirent **new; |