summaryrefslogtreecommitdiffstats
path: root/sbin/geom
diff options
context:
space:
mode:
authorlulf <lulf@FreeBSD.org>2008-12-27 14:24:24 +0000
committerlulf <lulf@FreeBSD.org>2008-12-27 14:24:24 +0000
commit798a67faaf8e9dcd2de64cbb2a517a1d4598f960 (patch)
treef726e93757883ccdbdc44f18c61c07407a8e13ac /sbin/geom
parent97550ee034501a9dd8cca6227f40108f8b69af16 (diff)
downloadFreeBSD-src-798a67faaf8e9dcd2de64cbb2a517a1d4598f960.zip
FreeBSD-src-798a67faaf8e9dcd2de64cbb2a517a1d4598f960.tar.gz
- Back out r186038. Rather than changing the intent of the caller, the problem
should be handled internally in gvinum. Suggested by: pjd
Diffstat (limited to 'sbin/geom')
-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 800cdcf..64df7c6 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);
OpenPOWER on IntegriCloud