diff options
author | rnordier <rnordier@FreeBSD.org> | 1999-06-21 14:40:59 +0000 |
---|---|---|
committer | rnordier <rnordier@FreeBSD.org> | 1999-06-21 14:40:59 +0000 |
commit | f31af56e7f778f4838e1223e36c75c45b5795ebd (patch) | |
tree | aedc2c84f8f07ff369f778a6c6e64bbe7f19d4ab /usr.sbin | |
parent | 3f0be110669ca211fd6e57306a2edc28149de544 (diff) | |
download | FreeBSD-src-f31af56e7f778f4838e1223e36c75c45b5795ebd.zip FreeBSD-src-f31af56e7f778f4838e1223e36c75c45b5795ebd.tar.gz |
Ensure that an update takes place when the -m option is used.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/boot0cfg/boot0cfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/boot0cfg/boot0cfg.c b/usr.sbin/boot0cfg/boot0cfg.c index 0d9ac01..446d11d 100644 --- a/usr.sbin/boot0cfg/boot0cfg.c +++ b/usr.sbin/boot0cfg/boot0cfg.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] = - "$Id: boot0cfg.c,v 1.3 1999/02/26 14:57:17 rnordier Exp $"; + "$Id: boot0cfg.c,v 1.4 1999/06/19 21:44:43 rnordier Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -130,7 +130,7 @@ main(int argc, char *argv[]) if (argc != 1) usage(); disk = mkrdev(*argv); - up = B_flag || d_arg != -1 || o_flag || t_arg != -1; + up = B_flag || d_arg != -1 || m_arg != -1 || o_flag || t_arg != -1; if ((fd = open(disk, up ? O_RDWR : O_RDONLY)) == -1) err(1, "%s", disk); if ((n = read(fd, buf, MBRSIZE)) == -1) |