ruby bindings/fixes for template loading

This commit is contained in:
Martin Willi
2008-07-09 11:43:48 +00:00
parent ee70c94835
commit a9c46ace99
3 changed files with 33 additions and 10 deletions
+3 -2
View File
@@ -709,8 +709,9 @@ static int cowfs_write(const char *path, const char *buf, size_t size,
rel(&path);
fd = get_rd(path);
if (fd == this->master_fd)
fd = get_wr(path);
if (fd == this->master_fd ||
(this->over_fd > 0 && fd == this->host_fd))
{
fd = copy(path);
if (fd < 0)