summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkaply%us.ibm.com <devnull@localhost>2005-02-18 17:55:51 +0000
committermkaply%us.ibm.com <devnull@localhost>2005-02-18 17:55:51 +0000
commit0191ac2e5e8d0990f73a0ab6ddf8cc6396ffffa3 (patch)
treedce71fc22d556040b4e5169ced9409f0b9818187
parentc8dd5671a5e342d65ab69c6b54788f0ccf6d1acf (diff)
downloadnspr-hg-0191ac2e5e8d0990f73a0ab6ddf8cc6396ffffa3.tar.gz
#271883
r=mkaply, sr=wtc remove FILE_HIDDEN from OS/2 NSPR
-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 c44398bf..d2e19104 100644
--- a/pr/src/md/os2/os2io.c
+++ b/pr/src/md/os2/os2io.c
@@ -151,8 +151,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)
@@ -181,16 +179,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 */