#271883 AVIARY_1_0_1_20050124_BRANCH FIREFOX_1_0_1_AUP_RELEASE FIREFOX_1_0_1_RELEASE FIREFOX_1_0_2_RELEASE THUNDERBIRD_1_0_2_RELEASE
authormkaply%us.ibm.com
Fri, 18 Feb 2005 13:46:36 +0000
branchAVIARY_1_0_1_20050124_BRANCH
changeset 3275 9026aa8f108d1a69dae1d8ec1fb7e12140b93754
parent 3227 0f767894d6c32e8b65453ed82408a1c0d92b1c7c
child 3342 23b769aa3ad1f47841ca0ff90af777c611ae897a
push idunknown
push userunknown
push dateunknown
bugs271883
#271883 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
pr/src/md/os2/os2io.c
--- a/pr/src/md/os2/os2io.c
+++ b/pr/src/md/os2/os2io.c
@@ -143,18 +143,16 @@ PRInt32
 _PR_MD_OPEN(const char *name, PRIntn osflags, int mode)
 {
     HFILE file;
     PRInt32 access = OPEN_SHARE_DENYNONE;
     PRInt32 flags = 0L;
     APIRET rc = 0;
     PRUword actionTaken;
 
-    ULONG fattr;
-
     if (osflags & PR_SYNC) access |= OPEN_FLAGS_WRITE_THROUGH;
 
     if (osflags & PR_RDONLY)
         access |= OPEN_ACCESS_READONLY;
     else if (osflags & PR_WRONLY)
         access |= OPEN_ACCESS_WRITEONLY;
     else if(osflags & PR_RDWR)
         access |= OPEN_ACCESS_READWRITE;
@@ -173,26 +171,22 @@ PRInt32
     else
     {
         if (osflags & PR_TRUNCATE)
             flags = OPEN_ACTION_FAIL_IF_NEW | OPEN_ACTION_REPLACE_IF_EXISTS;
         else
             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  */
         if (rc == ERROR_TOO_MANY_OPEN_FILES) {
             ULONG CurMaxFH = 0;
             LONG ReqCount = 20;
             APIRET rc2;
             rc2 = DosSetRelMaxFH(&ReqCount, &CurMaxFH);