diff options
author | mkaply%us.ibm.com <devnull@localhost> | 2005-02-18 13:46:36 +0000 |
---|---|---|
committer | mkaply%us.ibm.com <devnull@localhost> | 2005-02-18 13:46:36 +0000 |
commit | 5b7c396f392a666a9efab034be8acbc5708c10ae (patch) | |
tree | d713a31b7f16982928519294db6ca74a90f2ac96 | |
parent | f87e06db34f8a8b771f4868aa8a36c079afa17d9 (diff) | |
download | nspr-hg-THUNDERBIRD_1_0_2_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.c | 8 |
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 */ |