aboutsummaryrefslogtreecommitdiffstats
path: root/sbin/geom/misc
diff options
context:
space:
mode:
authorUlf Lilleengen <lulf@FreeBSD.org>2008-12-27 14:24:24 +0000
committerUlf Lilleengen <lulf@FreeBSD.org>2008-12-27 14:24:24 +0000
commitdb2bf4b01661857e73ade4593eaea4e439206545 (patch)
treef726e93757883ccdbdc44f18c61c07407a8e13ac /sbin/geom/misc
parentfcb5ddcdae212d7e447d1a2ed63b7bf717794aba (diff)
downloadsrc-db2bf4b01661857e73ade4593eaea4e439206545.tar.gz
src-db2bf4b01661857e73ade4593eaea4e439206545.zip
- Back out r186038. Rather than changing the intent of the caller, the problem
should be handled internally in gvinum. Suggested by: pjd
Notes
Notes: svn path=/head/; revision=186516
Diffstat (limited to 'sbin/geom/misc')
-rw-r--r--sbin/geom/misc/subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/geom/misc/subr.c b/sbin/geom/misc/subr.c
index 800cdcfbd69d..64df7c6845ed 100644
--- a/sbin/geom/misc/subr.c
+++ b/sbin/geom/misc/subr.c
@@ -211,7 +211,7 @@ g_metadata_store(const char *name, u_char *md, size_t size)
sector = NULL;
error = 0;
- fd = open(path, O_RDWR);
+ fd = open(path, O_WRONLY);
if (fd == -1)
return (errno);
mediasize = g_get_mediasize(name);