summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkaply%us.ibm.com <devnull@localhost>2005-02-18 13:46:36 +0000
committermkaply%us.ibm.com <devnull@localhost>2005-02-18 13:46:36 +0000
commit5b7c396f392a666a9efab034be8acbc5708c10ae (patch)
treed713a31b7f16982928519294db6ca74a90f2ac96
parentf87e06db34f8a8b771f4868aa8a36c079afa17d9 (diff)
downloadnspr-hg-FIREFOX_1_0_1_AUP_RELEASE.tar.gz
r=mkaply, sr=wtc, a=dveditz Patch from Peter Weilbacher - don't even handle FILE_HIDDEN in OS/2 since it isn't used in Mozilla and seems to be causing bookmark issues
-rw-r--r--pr/src/md/os2/os2io.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/pr/src/md/os2/os2io.c b/pr/src/md/os2/os2io.c
index 4897a31c..c8651fdd 100644
--- a/pr/src/md/os2/os2io.c
+++ b/pr/src/md/os2/os2io.c
@@ -148,8 +148,6 @@ _PR_MD_OPEN(const char *name, PRIntn osflags, int mode)
APIRET rc = 0;
PRUword actionTaken;
- ULONG fattr;
-
if (osflags & PR_SYNC) access |= OPEN_FLAGS_WRITE_THROUGH;
if (osflags & PR_RDONLY)
@@ -178,16 +176,12 @@ _PR_MD_OPEN(const char *name, PRIntn osflags, int mode)
flags = OPEN_ACTION_FAIL_IF_NEW | OPEN_ACTION_OPEN_IF_EXISTS;
}
- if (isxdigit(mode) == 0) /* file attribs are hex, UNIX modes octal */
- fattr = ((ULONG)mode == FILE_HIDDEN) ? FILE_HIDDEN : FILE_NORMAL;
- else fattr = FILE_NORMAL;
-
do {
rc = DosOpen((char*)name,
&file, /* file handle if successful */
&actionTaken, /* reason for failure */
0, /* initial size of new file */
- fattr, /* file system attributes */
+ FILE_NORMAL, /* file system attributes */
flags, /* Open flags */
access, /* Open mode and rights */
0); /* OS/2 Extended Attributes */