Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/kern Pull up revision 1.14 (requested by fvdl):



details:   https://anonhg.NetBSD.org/src/rev/50f7b4950187
branches:  netbsd-1-5
changeset: 490415:50f7b4950187
user:      jhawk <jhawk%NetBSD.org@localhost>
date:      Sun Dec 24 06:36:44 2000 +0000

description:
Pull up revision 1.14 (requested by fvdl):
  Avoid an infinite loop if VOP_READDIR returned an error.

diffstat:

 sys/kern/vfs_getcwd.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 16b106b97495 -r 50f7b4950187 sys/kern/vfs_getcwd.c
--- a/sys/kern/vfs_getcwd.c     Mon Dec 18 17:34:31 2000 +0000
+++ b/sys/kern/vfs_getcwd.c     Sun Dec 24 06:36:44 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_getcwd.c,v 1.13 2000/03/30 09:27:14 augustss Exp $ */
+/* $NetBSD: vfs_getcwd.c,v 1.13.4.1 2000/12/24 06:36:44 jhawk Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -253,7 +253,8 @@
                                }
                                cpos += reclen;
                        }
-               }
+               } else
+                       goto out;
        } while (!eofflag);
 #if 0
        /*



Home | Main Index | Thread Index | Old Index