- Back out r186038. Rather than changing the intent of the caller, the problem

should be handled internally in gvinum.

Suggested by:	pjd
This commit is contained in:
Ulf Lilleengen 2008-12-27 14:24:24 +00:00
parent fcb5ddcdae
commit db2bf4b016

View File

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