Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2008 14:24:24 +0000 (UTC)
From:      Ulf Lilleengen <lulf@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r186516 - head/sbin/geom/misc
Message-ID:  <200812271424.mBREOOf5073734@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lulf
Date: Sat Dec 27 14:24:24 2008
New Revision: 186516
URL: http://svn.freebsd.org/changeset/base/186516

Log:
  - Back out r186038. Rather than changing the intent of the caller, the problem
    should be handled internally in gvinum.
  
  Suggested by:	pjd

Modified:
  head/sbin/geom/misc/subr.c

Modified: head/sbin/geom/misc/subr.c
==============================================================================
--- head/sbin/geom/misc/subr.c	Sat Dec 27 14:17:15 2008	(r186515)
+++ head/sbin/geom/misc/subr.c	Sat Dec 27 14:24:24 2008	(r186516)
@@ -211,7 +211,7 @@ g_metadata_store(const char *name, u_cha
 	sector = NULL;
 	error = 0;
 
-	fd = open(path, O_RDWR);
+	fd = open(path, O_WRONLY);
 	if (fd == -1)
 		return (errno);
 	mediasize = g_get_mediasize(name);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200812271424.mBREOOf5073734>