Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern for FIOGETOWN, only change the sign of *data if fo_...
details: https://anonhg.NetBSD.org/src/rev/ea7f544d549a
branches: trunk
changeset: 510252:ea7f544d549a
user: lukem <lukem%NetBSD.org@localhost>
date: Thu May 24 06:52:43 2001 +0000
description:
for FIOGETOWN, only change the sign of *data if fo_ioctl returned without error
diffstat:
sys/kern/sys_generic.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 1543a6f3fee6 -r ea7f544d549a sys/kern/sys_generic.c
--- a/sys/kern/sys_generic.c Thu May 24 06:44:30 2001 +0000
+++ b/sys/kern/sys_generic.c Thu May 24 06:52:43 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_generic.c,v 1.54 2001/02/27 04:44:51 lukem Exp $ */
+/* $NetBSD: sys_generic.c,v 1.55 2001/05/24 06:52:43 lukem Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -600,7 +600,8 @@
break;
}
error = (*fp->f_ops->fo_ioctl)(fp, TIOCGPGRP, data, p);
- *(int *)data = -*(int *)data;
+ if (error == 0)
+ *(int *)data = -*(int *)data;
break;
default:
Home |
Main Index |
Thread Index |
Old Index