View | Details | Raw Unified | Return to bug 38998
Collapse All | Expand All

(-)libxslt/security.c (-2 / +13 lines)
Lines 18-23 Link Here
18
#include <sys/stat.h>
18
#include <sys/stat.h>
19
#endif
19
#endif
20
20
21
#ifdef HAVE_ERRNO_H
22
#include <errno.h>
23
#endif
24
21
#ifdef HAVE_MATH_H
25
#ifdef HAVE_MATH_H
22
#include <math.h>
26
#include <math.h>
23
#endif
27
#endif
Lines 342-349 xsltCheckWritePath(xsltSecurityPrefsPtr sec, Link Here
342
		}
346
		}
343
	    }
347
	    }
344
	    ret = xsltCheckWritePath(sec, ctxt, directory);
348
	    ret = xsltCheckWritePath(sec, ctxt, directory);
345
	    if (ret == 1)
349
	    if (ret == 1) {
350
#ifdef HAVE_ERRNO_H
351
		errno = 0;
352
#endif
346
		ret = mkdir(directory, 0755);
353
		ret = mkdir(directory, 0755);
354
#ifdef HAVE_ERRNO_H
355
		if (ret < 0 && errno == EEXIST)
356
		    ret = 0;
357
#endif
358
            }
347
	}
359
	}
348
	xmlFree(directory);
360
	xmlFree(directory);
349
	if (ret < 0)
361
	if (ret < 0)
350
- 

Return to bug 38998