aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/sys
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-05-01 18:11:40 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-05-01 18:11:40 -0700
commit6ed325a3c881565cc2473d1fbfa69d806b4b7bbf (patch)
treefccf7b5c5035386928dec4d08e9008c2a9b672b8 /com32/lib/sys
parent1b30df94470464ac17c75b07d5062e03af1ef68a (diff)
downloadsyslinux-6ed325a3c881565cc2473d1fbfa69d806b4b7bbf.tar.gz
syslinux-6ed325a3c881565cc2473d1fbfa69d806b4b7bbf.tar.xz
syslinux-6ed325a3c881565cc2473d1fbfa69d806b4b7bbf.zip
core: pass the file flags down through the stack
Pass the file flags down through the stack. This allows us to distinguish between open for read, open for write, or opendir in the low-level filesystem functions; this will matter for the PXE methods. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/lib/sys')
-rw-r--r--com32/lib/sys/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/lib/sys/open.c b/com32/lib/sys/open.c
index 3e7bb6cf..b4673b20 100644
--- a/com32/lib/sys/open.c
+++ b/com32/lib/sys/open.c
@@ -61,7 +61,7 @@ int open(const char *pathname, int flags, ...)
fp = &__file_info[fd];
- handle = __com32.cs_pm->open_file(pathname, &fp->i.fd);
+ handle = __com32.cs_pm->open_file(pathname, flags, &fp->i.fd);
if (handle < 0) {
close(fd);
errno = ENOENT;