commit 81779498a0370a52bf376c736cc664325d340548
parent d1bb6193c4101f40e02f00d3faef1b5618a82eb8
Author: David Barksdale <amatus.amongus@gmail.com>
Date: Thu, 28 Jun 2007 05:23:52 +0000
Fix for unmount bug which caused uri files to be munged
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/main.c b/main.c
@@ -207,6 +207,7 @@ int main(int argc, char **argv)
/* Save root uri */
buf = gn_get_special_file(G_DIR_SEPARATOR_S URI_FILE);
ftruncate(root_fd, 0);
+ lseek(root_fd, SEEK_SET, 0);
write(root_fd, buf, strlen(buf));
FREE(buf);
out_close_root: