diff options
author | Andy Wingo <wingo@pobox.com> | 2013-02-19 22:36:22 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2013-02-19 22:36:22 +0100 |
commit | 5a4a4454c5302ed511eafde5a7759ebf00fbee17 (patch) | |
tree | 5b0422a8b7c963fae160ebdb3d9ca5583f4098b0 /libguile/filesys.c | |
parent | 854ada4f1af8d72859b77e8764729f3cca45460a (diff) | |
download | guile-5a4a4454c5302ed511eafde5a7759ebf00fbee17.tar.gz |
copy-file and load-objcode use O_BINARY
* libguile/filesys.c (scm_copy_file):
* libguile/objcodes.c (scm_load_objcode): Use O_BINARY. Thanks to Eli
Zaretskii for the patch.
Diffstat (limited to 'libguile/filesys.c')
-rw-r--r-- | libguile/filesys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/filesys.c b/libguile/filesys.c index 94d824e85..2c4168eea 100644 --- a/libguile/filesys.c +++ b/libguile/filesys.c @@ -1095,7 +1095,7 @@ SCM_DEFINE (scm_copy_file, "copy-file", 2, 0, 0, c_newfile = scm_to_locale_string (newfile); scm_dynwind_free (c_newfile); - oldfd = open_or_open64 (c_oldfile, O_RDONLY); + oldfd = open_or_open64 (c_oldfile, O_RDONLY | O_BINARY); if (oldfd == -1) SCM_SYSERROR; |