diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-08-05 02:34:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-08-05 02:34:53 +0000 |
commit | 4c0ca52b954ce1d076f59b304c7cfe448b3ce046 (patch) | |
tree | 165042e6e5eb4542d8c7abf064eeae3ae35a77df /sbin/bioctl | |
parent | 640ec930e6087f7513dce7e5bea6a8aa513ced40 (diff) |
if no command specified, assume -i
Diffstat (limited to 'sbin/bioctl')
-rw-r--r-- | sbin/bioctl/bioctl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/bioctl/bioctl.c b/sbin/bioctl/bioctl.c index 130d28420f2..05c494168cb 100644 --- a/sbin/bioctl/bioctl.c +++ b/sbin/bioctl/bioctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bioctl.c,v 1.21 2005/08/03 16:12:53 marco Exp $ */ +/* $OpenBSD: bioctl.c,v 1.22 2005/08/05 02:34:52 deraadt Exp $ */ /* * Copyright (c) 2004, 2005 Marco Peereboom @@ -90,6 +90,9 @@ main(int argc, char *argv[]) if (argc < 0 || argc > 1) usage(); + if (func == 0) + func |= BIOC_INQ; + /* if at least glob sd[0-9]*, it is a drive identifier */ if (strncmp(argv[0], "sd", 2) == 0 && strlen(argv[0]) > 2 && isdigit(argv[0][2])) |