svn commit: r186516 - head/sbin/geom/misc

Ulf Lilleengen lulf at FreeBSD.org
Sat Dec 27 14:24:24 UTC 2008


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);


More information about the svn-src-head mailing list