[syslinux:lwip] pxe: fix the flags test
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Mon May 2 22:18:18 PDT 2011
Commit-ID: 2da6006eedc7a1481b669090dc112411fbf8b384
Gitweb: http://syslinux.zytor.com/commit/2da6006eedc7a1481b669090dc112411fbf8b384
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 2 May 2011 22:16:18 -0700
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 2 May 2011 22:16:18 -0700
pxe: fix the flags test
Fix the test for permissible file mode flags. This unbreaks http.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
core/fs/pxe/pxe.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/core/fs/pxe/pxe.c b/core/fs/pxe/pxe.c
index f723acb..f54e595 100644
--- a/core/fs/pxe/pxe.c
+++ b/core/fs/pxe/pxe.c
@@ -350,7 +350,7 @@ static void __pxe_searchdir(const char *filename, int flags, struct file *file)
found_scheme = false;
for (us = url_schemes; us->name; us++) {
if (!strcmp(us->name, url.scheme)) {
- if (((flags ^ us->ok_flags) & OK_FLAGS_MASK) == 0)
+ if ((flags & ~us->ok_flags & OK_FLAGS_MASK) == 0)
us->open(&url, flags, inode, &filename);
found_scheme = true;
break;
More information about the Syslinux-commits
mailing list