]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Ignore possible errors from select function.
authorUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 22:53:29 +0000 (22:53 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 22:53:29 +0000 (22:53 +0000)
dirent/scandir.c

index ac625d89f3f26260b1c4ac0c1aea99b33e9c14b4..58a2c7519dcac0cb64aa5db0f05e82b57bfad1da 100644 (file)
@@ -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;