Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:zhonghuaren
pdftohtml
pdftohtml-tmpfile.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pdftohtml-tmpfile.diff of Package pdftohtml
--- pdftohtml_0_34/goo/gfile.cc.~1.3.~ Wed Jun 12 06:58:21 2002 +++ pdftohtml_0_34/goo/gfile.cc Wed Jul 10 12:05:08 2002 @@ -488,24 +488,6 @@ char *s; int fd; - if (ext) { -#if HAVE_MKSTEMPS - if ((s = getenv("TMPDIR"))) { - *name = new GString(s); - } else { - *name = new GString("/tmp"); - } - (*name)->append("/XXXXXX")->append(ext); - fd = mkstemps((*name)->getCString(), strlen(ext)); -#else - if (!(s = tmpnam(NULL))) { - return gFalse; - } - *name = new GString(s); - (*name)->append(ext); - fd = open((*name)->getCString(), O_WRONLY | O_CREAT | O_EXCL, 0600); -#endif - } else { #if HAVE_MKSTEMP if ((s = getenv("TMPDIR"))) { *name = new GString(s); @@ -521,7 +503,7 @@ *name = new GString(s); fd = open((*name)->getCString(), O_WRONLY | O_CREAT | O_EXCL, 0600); #endif // HAVE_MKSTEMP - } + if (fd < 0 || !(*f = fdopen(fd, mode))) { delete *name; return gFalse;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor