Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!tgr!speck@cit-vlsi From: speck@cit-vlsi (Don Speck) Newsgroups: net.sources Subject: 4.2bsd ts driver allows O_RDWR without write ring +FIX Message-ID: <623@brl-tgr.ARPA> Date: Mon, 12-Aug-85 09:14:03 EDT Article-I.D.: brl-tgr.623 Posted: Mon Aug 12 09:14:03 1985 Date-Received: Wed, 14-Aug-85 01:30:02 EDT Sender: news@brl-tgr.ARPA Lines: 14 Index: sys/vaxuba/ts.c 4.2 Fix Description: The TS11/TU80 driver allows opens with mode O_RDWR even if there's no write ring. All the other tape drivers require a write ring for O_RDWR mode. Repeat-by: Load a tape without write ring, open the drive for reading and writing, and try writing. The open will succeed but the writes will fail (errno=EIO). Fix: diff old/ts.c ts.c 184c184 < if ((flag&(FREAD|FWRITE)) == FWRITE && (sc->sc_sts.s_xs0&TS_WLK)) { --- > if ((flag&FWRITE) && (sc->sc_sts.s_xs0&TS_WLK)) {