mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
parent
b7c0f9d2dd
commit
607ada90b8
@ -1581,7 +1581,7 @@ xmlNanoHTTPFetch(const char *URL, const char *filename, char **contentType) {
|
|||||||
if (ctxt == NULL) return(-1);
|
if (ctxt == NULL) return(-1);
|
||||||
|
|
||||||
if (!strcmp(filename, "-"))
|
if (!strcmp(filename, "-"))
|
||||||
fd = 0;
|
fd = 1; /* STDOUT_FILENO */
|
||||||
else {
|
else {
|
||||||
fd = open(filename, O_CREAT | O_WRONLY, 00644);
|
fd = open(filename, O_CREAT | O_WRONLY, 00644);
|
||||||
if (fd < 0) {
|
if (fd < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user