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);
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to