From 9b54f17a844a285fdea5d82ae9253dd91aaa211c Mon Sep 17 00:00:00 2001 From: deraadt Date: Wed, 30 Apr 1997 13:51:51 +0000 Subject: [PATCH] clone boot sector that existed there? bad idea. No idea why though --- sbin/newfs_msdos/newfs_msdos.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sbin/newfs_msdos/newfs_msdos.c b/sbin/newfs_msdos/newfs_msdos.c index 1d031345e35..e59f120debb 100644 --- a/sbin/newfs_msdos/newfs_msdos.c +++ b/sbin/newfs_msdos/newfs_msdos.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newfs_msdos.c,v 1.7 1997/04/14 12:07:04 deraadt Exp $ */ +/* $OpenBSD: newfs_msdos.c,v 1.8 1997/04/30 13:51:51 deraadt Exp $ */ /* * Copyright (c) 1995, 1996 Joerg Wunsch @@ -276,9 +276,6 @@ main(argc, argv) if (i == sizeof table / sizeof(struct descrip)) errx(1, "cannot find format description for %d KB", format); - if (read(fd, (char *)bs.raw, sizeof bs) != sizeof bs) - err(1, "boot sector read()"); - /* prepare and write the boot sector */ setup_boot_sector_from_template(&bs, dp); -- 2.20.1