Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/sys/kern/getcwd Compensate for fix to PR7761; kernel...
details: https://anonhg.NetBSD.org/src/rev/59447912d31f
branches: trunk
changeset: 473792:59447912d31f
user: sommerfeld <sommerfeld%NetBSD.org@localhost>
date: Sat Jun 19 18:02:06 1999 +0000
description:
Compensate for fix to PR7761; kernel now clips overly large length
diffstat:
regress/sys/kern/getcwd/getcwd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 642419f2c5a1 -r 59447912d31f regress/sys/kern/getcwd/getcwd.c
--- a/regress/sys/kern/getcwd/getcwd.c Sat Jun 19 18:01:26 1999 +0000
+++ b/regress/sys/kern/getcwd/getcwd.c Sat Jun 19 18:02:06 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: getcwd.c,v 1.3 1999/03/26 22:23:58 sommerfe Exp $ */
+/* $NetBSD: getcwd.c,v 1.4 1999/06/19 18:02:06 sommerfeld Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -335,8 +335,8 @@
CHECK("/", __getcwd(0, 0), -1, ERANGE);
CHECK("/", __getcwd(0, -1), -1, ERANGE);
CHECK("/", __getcwd(kbuf, 0xdeadbeef), -1, ERANGE); /* large negative */
- CHECK("/", __getcwd(kbuf, 0x7000beef), -1, ERANGE); /* large positive */
- CHECK("/", __getcwd(kbuf, 0x10000), -1, ERANGE); /* outside address space */
+ CHECK("/", __getcwd(kbuf, 0x7000beef), 2, 0); /* large positive, rounds down */
+ CHECK("/", __getcwd(kbuf, 0x10000), 2, 0); /* slightly less large positive, rounds down */
CHECK("/", __getcwd(kbuf+0x100000, sizeof(kbuf)), -1, EFAULT); /* outside address space */
CHECK("/", __getcwd(0, 30), -1, EFAULT);
CHECK("/", __getcwd((void*)0xdeadbeef, 30), -1, EFAULT);
Home |
Main Index |
Thread Index |
Old Index