From 31f2adeaa1695f28b2c494ec21e03b5f6bee8573 Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Fri, 18 Feb 2005 17:55:51 +0000 Subject: [PATCH] #271883 r=mkaply, sr=wtc remove FILE_HIDDEN from OS/2 NSPR git-svn-id: svn://10.0.0.236/branches/NSPRPUB_PRE_4_2_CLIENT_BRANCH@169401 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/nsprpub/pr/src/md/os2/os2io.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mozilla/nsprpub/pr/src/md/os2/os2io.c b/mozilla/nsprpub/pr/src/md/os2/os2io.c index c44398bf712..d2e191043bd 100644 --- a/mozilla/nsprpub/pr/src/md/os2/os2io.c +++ b/mozilla/nsprpub/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 */