- 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:
parent
fcb5ddcdae
commit
db2bf4b016
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user