From: Bill Joy Date: Mon, 28 Jun 1982 06:53:09 +0000 (-0800) Subject: fix to do writes in memory properly X-Git-Tag: BSD-4_1c_2-Snapshot-Development~3051 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/47cbe1cbd3f1ff012b57196b805c32c94ad1cd31 fix to do writes in memory properly SCCS-vsn: old/adb/adb.vax/access.c 4.5 --- diff --git a/usr/src/old/adb/adb.vax/access.c b/usr/src/old/adb/adb.vax/access.c index 3d64f4e6c6..c27191575a 100644 --- a/usr/src/old/adb/adb.vax/access.c +++ b/usr/src/old/adb/adb.vax/access.c @@ -8,7 +8,7 @@ */ #include "defs.h" -static char sccsid[] = "@(#)access.c 4.4 %G%"; +static char sccsid[] = "@(#)access.c 4.4 5/15/81"; MAP txtmap; @@ -79,7 +79,7 @@ access(mode, addr, space, value) if (addr < 0) return (0); } - if (physrw(file, addr, &w, rd) < 0) + if (physrw(file, addr, rd ? &w : &value, rd) < 0) rwerr(space); return (w); }