summaryrefslogtreecommitdiffstats
path: root/usr.sbin/boot0cfg/boot0cfg.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/boot0cfg/boot0cfg.c')
-rw-r--r--usr.sbin/boot0cfg/boot0cfg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/boot0cfg/boot0cfg.c b/usr.sbin/boot0cfg/boot0cfg.c
index 4075023..67d0c88 100644
--- a/usr.sbin/boot0cfg/boot0cfg.c
+++ b/usr.sbin/boot0cfg/boot0cfg.c
@@ -26,8 +26,8 @@
#ifndef lint
static const char rcsid[] =
-"$Id: $";
-#endif /* not lint */
+ "$Id: boot0cfg.c,v 1.1.1.1 1999/02/21 21:23:42 rnordier Exp $";
+#endif /* not lint */
#include <sys/param.h>
#include <sys/disklabel.h>
@@ -126,7 +126,7 @@ main(int argc, char *argv[])
if (argc != 1)
usage();
disk = mkrdev(*argv);
- up = B_flag || d_arg || o_flag || t_arg;
+ up = B_flag || d_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)
OpenPOWER on IntegriCloud