mbeck@brl.mil (SECAD-guest) (09/03/89)
1.4a dosread.c doesn't seem to know about a second hard disk. The following context diff adds /dev/hd5 and a little code so that drive references are now 0, 1, a, b, c, d, e, f, g, h, i, and j. This context diff is relative to 1.4a dosread. old crc 00854 28023 old_dosread.c new crc 39990 28188 dosread.c #! /bin/sh # This is a shell archive, meaning: # 1. Remove everything above the #! /bin/sh line. # 2. Save the resulting text in a file. # 3. Execute the file with /bin/sh (not csh) to create the files: # dosread.c.cdiff # This archive created: Sat Sep 2 17:13:55 1989 export PATH; PATH=/bin:$PATH echo shar: extracting "'dosread.c.cdiff'" '(1430 characters)' if test -f 'dosread.c.cdiff' then echo shar: will not over-write existing file "'dosread.c.cdiff'" else sed 's/^X//' << \SHAR_EOF > 'dosread.c.cdiff' X*** olddosread.c Sat Sep 2 15:41:54 1989 X--- dosread.c Sat Sep 2 16:32:39 1989 X*************** X*** 39,45 **** X X #define DRIVE0 "/dev/at0" X #define DRIVE1 "/dev/at1" X! #define FDRIVE "/dev/hd0" X X #define DDDD 0xFD X #define DDHD 0xF9 X--- 39,46 ---- X X #define DRIVE0 "/dev/at0" X #define DRIVE1 "/dev/at1" X! #define FDRIVE1 "/dev/hd0" X! #define FDRIVE2 "/dev/hd5" X X #define DDDD 0xFD X #define DDHD 0xF9 X*************** X*** 198,204 **** X case 'c': X case 'd': X case 'e': X! case 'f': fdisk = TRUE; device = FDRIVE; break; X default : usage(argv[0]); X } X X--- 199,209 ---- X case 'c': X case 'd': X case 'e': X! case 'f': fdisk = TRUE; device = FDRIVE1; break; X! case 'g': X! case 'h': X! case 'i': X! case 'j': fdisk = TRUE; device = FDRIVE2; break; X default : usage(argv[0]); X } X X*************** X*** 360,368 **** X case 'a': X case '1': X case 'b': boot_loc=0; break; X! case 'f': pe++; X! case 'e': pe++; X! case 'd': pe++; X case 'c': boot_loc = pe->lowsec * 512L; break; X default: printf("Error: unknown partition\n"); leave(); X } X--- 365,377 ---- X case 'a': X case '1': X case 'b': boot_loc=0; break; X! case 'j': X! case 'f': pe++; X! case 'i': X! case 'e': pe++; X! case 'h': X! case 'd': pe++; X! case 'g': X case 'c': boot_loc = pe->lowsec * 512L; break; X default: printf("Error: unknown partition\n"); leave(); X } SHAR_EOF if test 1430 -ne "`wc -c < 'dosread.c.cdiff'`" then echo shar: error transmitting "'dosread.c.cdiff'" '(should have been 1430 characters)' fi fi # end of overwriting check # End of shell archive exit 0