Revision: 14531
Author: adrian.chadd
Date: Fri Apr  2 23:06:20 2010
Log: Issue #101 - open files with the binary flag set for Windows.


http://code.google.com/p/lusca-cache/source/detail?r=14531

Modified:
 /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_dir.c
 /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_log.c

=======================================
--- /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_dir.c Mon Mar 29 05:43:15 2010 +++ /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_dir.c Fri Apr 2 23:06:20 2010
@@ -70,7 +70,7 @@
        struct stat sb;

        debug(86, 3) ("read_file: %s\n", path);
-       fd = open(path, O_RDONLY);
+       fd = open(path, O_RDONLY | O_BINARY);
        if (fd < 0) {
                perror("open");
                return 0;
=======================================
--- /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_log.c Wed Mar 24 07:48:15 2010 +++ /branches/LUSCA_HEAD/app/ufs_rebuild/ufs_build_log.c Fri Apr 2 23:06:20 2010
@@ -125,7 +125,7 @@
        char *rbuf;

        debug(47, 1) ("ufs_rebuild: %s: rebuild from swaplog\n", ufs->path);
-       fp = fopen(ufs->swaplog_path, "r");
+       fp = fopen(ufs->swaplog_path, "rb");
        if (! fp) {
                perror("fopen");
                return;

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to