aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/boot0cfg
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2011-10-25 04:15:45 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2011-10-25 04:15:45 +0000
commit9f772ce21998ed2f1718d12de226c364976e6f8f (patch)
treeda97cbf2830cf0969bc1ac737fb44f5d54027983 /usr.sbin/boot0cfg
parentb3664a14cc136cb56e974c893ac6ef591d84f866 (diff)
downloadsrc-9f772ce21998ed2f1718d12de226c364976e6f8f.tar.gz
src-9f772ce21998ed2f1718d12de226c364976e6f8f.zip
Fix argument name. This fixes EINVAL when boot0cfg uses GEOM_PART'
control interface. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=226714
Diffstat (limited to 'usr.sbin/boot0cfg')
-rw-r--r--usr.sbin/boot0cfg/boot0cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/boot0cfg/boot0cfg.c b/usr.sbin/boot0cfg/boot0cfg.c
index cd3bfe284e29..37ca140513a6 100644
--- a/usr.sbin/boot0cfg/boot0cfg.c
+++ b/usr.sbin/boot0cfg/boot0cfg.c
@@ -378,7 +378,7 @@ write_mbr(const char *fname, int flags, u_int8_t *mbr, int mbr_size)
}
grq = gctl_get_handle();
gctl_ro_param(grq, "class", -1, "PART");
- gctl_ro_param(grq, "geom", -1, pname);
+ gctl_ro_param(grq, "arg0", -1, pname);
gctl_ro_param(grq, "verb", -1, "bootcode");
gctl_ro_param(grq, "bootcode", mbr_size, mbr);
gctl_ro_param(grq, "flags", -1, "C");