summaryrefslogtreecommitdiff
path: root/com32/lib/sys
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-03-06 17:10:32 +0000
committerMatt Fleming <matt.fleming@intel.com>2013-03-06 17:10:32 +0000
commit4153b9005c460e02d36c457367a045444812bb97 (patch)
treed6f41a24f4f58d0c85725f61aea0e5deba6d21cd /com32/lib/sys
parent12eafad11c9c68c979309087d71f1c76e3f1c4b9 (diff)
parent16aa878d78086e9bc1c1f1053dc24da295f81e05 (diff)
downloadsyslinux-5.10-pre1.tar.gz
Merge branch 'lwip-merge' into elflinksyslinux-5.10-pre1
Diffstat (limited to 'com32/lib/sys')
-rw-r--r--com32/lib/sys/file.h2
-rw-r--r--com32/lib/sys/open.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/com32/lib/sys/file.h b/com32/lib/sys/file.h
index 4cd19464..f79b4f19 100644
--- a/com32/lib/sys/file.h
+++ b/com32/lib/sys/file.h
@@ -74,7 +74,7 @@ struct output_dev {
/* File structure */
-#define NFILES 32 /* Number of files to support */
+#define NFILES 128 /* Number of files to support */
#define MAXBLOCK 16384 /* Defined by ABI */
struct file_info {
diff --git a/com32/lib/sys/open.c b/com32/lib/sys/open.c
index 3221bb60..1ed5bb4c 100644
--- a/com32/lib/sys/open.c
+++ b/com32/lib/sys/open.c
@@ -65,7 +65,7 @@ int open(const char *pathname, int flags, ...)
fp = &__file_info[fd];
- handle = open_file(pathname, &fp->i.fd);
+ handle = open_file(pathname, flags, &fp->i.fd);
if (handle < 0) {
close(fd);
errno = ENOENT;