diff options
author | Matt Fleming <matt.fleming@intel.com> | 2013-03-06 17:10:32 +0000 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-03-06 17:10:32 +0000 |
commit | 4153b9005c460e02d36c457367a045444812bb97 (patch) | |
tree | d6f41a24f4f58d0c85725f61aea0e5deba6d21cd /com32/chain/utility.c | |
parent | 12eafad11c9c68c979309087d71f1c76e3f1c4b9 (diff) | |
parent | 16aa878d78086e9bc1c1f1053dc24da295f81e05 (diff) | |
download | syslinux-5.10-pre1.tar.gz |
Merge branch 'lwip-merge' into elflinksyslinux-5.10-pre1
Diffstat (limited to 'com32/chain/utility.c')
-rw-r--r-- | com32/chain/utility.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/chain/utility.c b/com32/chain/utility.c index 7a0ce61c..b17997f7 100644 --- a/com32/chain/utility.c +++ b/com32/chain/utility.c @@ -29,6 +29,7 @@ * ----------------------------------------------------------------------- */ #include <com32.h> +#include <fcntl.h> #include <stdint.h> #include <stdio.h> #include <errno.h> @@ -151,7 +152,7 @@ uint32_t get_file_lba(const char *filename) /* Put the filename in the bounce buffer */ strlcpy(buf, filename, size); - if (open_file(buf, &fd) <= 0) { + if (open_file(buf, O_RDONLY, &fd) <= 0) { goto fail; /* Filename not found */ } |