mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[svn-r23228] Purpose:
Revert back one of the coverity updates from previous checkin. "r20457: Coverity issue 691" in previous svn log. Only revert the change about using "STDOUT_FILENO". Description: Using "STDOUT_FILENO" caused error on Windows. On unix it's defined in <unistd.h>, but not in Windows. After a little discussion with Allen, he remembered how the similar case were handled for h5dump redirecting those streams. (in h5dump.c) However it would requires more attention to apply, so this issue is entered as a separate task in jira HDDFV-8306. Tested: jam (linux32-LE), koala (linux64-LE), ostrich (linuxppc64-BE), fred (mac64-LE)
This commit is contained in:
parent
b1e0f6c5a5
commit
d7a07d62a4
@ -307,7 +307,7 @@ main(int argc, const char *argv[])
|
||||
|
||||
if (ub_file == NULL) {
|
||||
/* write to sdtout */
|
||||
ufid = STDOUT_FILENO;
|
||||
ufid = HDdup(1);
|
||||
}
|
||||
else {
|
||||
ufid = HDopen(ub_file,O_WRONLY|O_CREAT|O_TRUNC, 0644 );
|
||||
|
Loading…
Reference in New Issue
Block a user