* jartool.c (extract_jar): Use "open" with O_BINARY instead of
"creat" to create extracted files.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59366
138bc75d-0d04-0410-961f-
82ee72b054a4
+2002-11-21 Ranjit Mathew <rmathew@hotmail.com>
+
+ * jartool.c (extract_jar): Use "open" with O_BINARY instead of
+ "creat" to create extracted files.
+
2002-11-11 Tom Tromey <tromey@redhat.com>
* dostime.c (dos2unixtime): Mask for seconds is 0x1f. Correctly
}
if(f_fd != -1 && handle){
- f_fd = creat((const char *)filename, 00644);
+ f_fd = open((const char *)filename,
+ O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644);
if(f_fd < 0){
fprintf(stderr, "Error extracting JAR archive!\n");