From 27869a72dede47c594d1aff1d07a27b16ae05d92 Mon Sep 17 00:00:00 2001 From: "raman%netscape.com" Date: Mon, 7 Dec 1998 21:49:29 +0000 Subject: [PATCH] Bug fix for 1741. For XP_FILE_READ_BIN permission types, set mode as nsRead. --- network/module/nsNetStubs.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/network/module/nsNetStubs.cpp b/network/module/nsNetStubs.cpp index 2566b0a6cf7d..5b3c5dfd7b2e 100644 --- a/network/module/nsNetStubs.cpp +++ b/network/module/nsNetStubs.cpp @@ -1102,7 +1102,8 @@ NET_I_XP_FileOpen(const char * name, XP_FileType type, const XP_FilePerm perm) trans->xpFp= xpFp; - if (!PL_strcasecmp(perm,XP_FILE_READ)) { + if ((!PL_strcasecmp(perm,XP_FILE_READ)) || + (!PL_strcasecmp(perm,XP_FILE_READ_BIN))) { mode = nsRead; } else if (!PL_strcasecmp(perm,XP_FILE_WRITE)) { mode = nsOverWrite;