Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/osf1 fix some bugs (good to get to the point wher...
details: https://anonhg.NetBSD.org/src/rev/8984cb195461
branches: trunk
changeset: 472358:8984cb195461
user: cgd <cgd%NetBSD.org@localhost>
date: Wed Apr 28 06:01:51 1999 +0000
description:
fix some bugs (good to get to the point where bug-fixing is an issue!):
* when copying out the timezone in gettimeofday, don't accidentally copy
out the timeval again (into the timezone buffer).
* mmap() PROT_WRITE and PROT_EXECUTE imply PROT_READ.
diffstat:
sys/compat/osf1/osf1_misc.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 8062b395b438 -r 8984cb195461 sys/compat/osf1/osf1_misc.c
--- a/sys/compat/osf1/osf1_misc.c Wed Apr 28 05:24:08 1999 +0000
+++ b/sys/compat/osf1/osf1_misc.c Wed Apr 28 06:01:51 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_misc.c,v 1.31 1999/04/28 05:09:48 cgd Exp $ */
+/* $NetBSD: osf1_misc.c,v 1.32 1999/04/28 06:01:51 cgd Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -258,8 +258,8 @@
{ OSF1_PROT_NONE, OSF1_PROT_NONE, PROT_NONE },
#endif
{ OSF1_PROT_READ, OSF1_PROT_READ, PROT_READ },
- { OSF1_PROT_WRITE, OSF1_PROT_WRITE, PROT_WRITE },
- { OSF1_PROT_EXEC, OSF1_PROT_EXEC, PROT_EXEC },
+ { OSF1_PROT_WRITE, OSF1_PROT_WRITE, PROT_READ|PROT_WRITE },
+ { OSF1_PROT_EXEC, OSF1_PROT_EXEC, PROT_READ|PROT_EXEC },
{ 0 }
};
@@ -1246,8 +1246,8 @@
otz.tz_minuteswest = tz.tz_minuteswest;
otz.tz_dsttime = tz.tz_dsttime;
- error = copyout((caddr_t)&otv,
- (caddr_t)SCARG(uap, tzp), sizeof otv);
+ error = copyout((caddr_t)&otz,
+ (caddr_t)SCARG(uap, tzp), sizeof otz);
}
}
return (error);
Home |
Main Index |
Thread Index |
Old Index