From db2bf4b01661857e73ade4593eaea4e439206545 Mon Sep 17 00:00:00 2001 From: Ulf Lilleengen Date: Sat, 27 Dec 2008 14:24:24 +0000 Subject: [PATCH] - Back out r186038. Rather than changing the intent of the caller, the problem should be handled internally in gvinum. Suggested by: pjd --- sbin/geom/misc/subr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);