Xref: utzoo comp.os.minix:7579 comp.sys.ibm.pc:36320 comp.unix.xenix:8072 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!uwm.edu!lll-winken!uunet!munnari.oz.au!csc!ccadfa!usage!basser!metro!extro!natmlab!ditsyda!evans From: evans@ditsyda.oz (Bruce Evans) Newsgroups: comp.os.minix,comp.sys.ibm.pc,comp.unix.xenix Subject: Re: dosread.c again Message-ID: <2265@ditsyda.oz> Date: 15 Oct 89 18:16:45 GMT References: <3717@ast.cs.vu.nl> <3a18.2536ede8@ibmpcug.co.uk> Reply-To: evans@ditsyda.oz (Bruce Evans) Organization: CSIRO DIT Sydney, Australia Lines: 16 In article <3a18.2536ede8@ibmpcug.co.uk> ronald@ibmpcug.co.uk (Ronald Khoo) writes: >magic != 0xAA55 >Can't handle disk > >Interesting that this has never stopped me using floppies formatted under >SCO Xenix before. Is dos{read,write,dir) the only program in the world Sorry about that. Even DOS doesn't check this particular magic number. It probably only belongs on *bootable* disks. DOS 3.3 requires it for bootable hard disk partitions at least. Sun 386i's are reported to require it for bootable floppies. So you can delete the test, and the program should be changed to check some other magic numbers (probably just the consistency of the parameter block). -- Bruce Evans evans@ditsyda.oz.au