Closed
Bug 487254
Opened 14 years ago
Closed 14 years ago
sftkmod.c uses POSIX file IO Functions on WinCE, which doesn't have them
Categories
(NSS :: Libraries, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
3.12.4
People
(Reporter: wolfe, Assigned: rrelyea)
References
Details
(Keywords: mobile, Whiteboard: FIPS)
Attachments
(2 files)
1.42 KB,
patch
|
blassey
:
review+
nelson
:
superreview+
|
Details | Diff | Splinter Review |
1.17 KB,
patch
|
Details | Diff | Splinter Review |
In security/nss/lib/softoken/sftkmod.c - POSIX file IO operations are used. Since WINCE has no POSIX file operations, the lfopen function needs to be replaced with a simple fopen() function call.
Attachment #371487 -
Flags: review?(bugmail)
Comment 1•14 years ago
|
||
this appears to be from bug 463452
Updated•14 years ago
|
Assignee: nobody → rrelyea
Severity: normal → blocker
Priority: -- → P1
Summary: WinCE does not have POSIX file IO Functions (sftkmod.c broken) → sftkmod.c uses POSIX file IO Functions on WinCE, which doesn't have them
Whiteboard: FIPS
Target Milestone: --- → 3.12.4
Version: unspecified → 3.12.3
Updated•14 years ago
|
Attachment #371487 -
Flags: superreview?(rrelyea)
Updated•14 years ago
|
Attachment #371487 -
Flags: review?(bugmail) → review+
Comment 2•14 years ago
|
||
Comment on attachment 371487 [details] [diff] [review] v1.0 patch in HG format >- fd = lfopen(dbname, "a+", O_CREAT|O_RDWR|O_APPEND); >+#ifdef WINCE >+ fd = fopen(dbname, "a+"); >+#else >+ fd = lfopen(dbname, "a+", O_CREAT|O_RDWR|O_APPEND); >+#endif > if (fd == NULL) { > return SECFailure; > } nit, fix ws
Comment 3•14 years ago
|
||
Comment on attachment 371487 [details] [diff] [review] v1.0 patch in HG format r=nelson, with whitespace of the lfopen line restored to same as before the patch. >- fd = lfopen(dbname, "a+", O_CREAT|O_RDWR|O_APPEND); >+ fd = lfopen(dbname, "a+", O_CREAT|O_RDWR|O_APPEND); Now, who's going to do these commits? Bob, Kai, me?
Attachment #371487 -
Flags: superreview?(rrelyea) → superreview+
Comment 4•14 years ago
|
||
Checking in util/nssutil.h; new revision: 1.3; previous revision: 1.2 Checking in softoken/sdb.c; new revision: 1.12; previous revision: 1.11 Checking in softoken/sftkmod.c; new revision: 1.5; previous revision: 1.4
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 5•14 years ago
|
||
This alterative patch reduces the number of ifdefs.
You need to log in
before you can comment on or make changes to this bug.
Description
•