Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.2
zoo
zoo-2.10-tempfile.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zoo-2.10-tempfile.patch of Package zoo
--- zoo/zoopack.c.tempfile Thu Jul 11 21:08:04 1991 +++ zoo/zoopack.c Fri Jan 18 13:34:56 2002 @@ -171,8 +171,19 @@ } else { strcpy (temp_file, xes); } -mktemp (temp_file); /* ... and make unique */ -new_file = zoocreate (temp_file); + +/* make unique name */ +/* my god, this coding style sucks */ +new_file = NOFILE; +{ + int fd; + + if ((fd = mkstemp(temp_file)) >= 0) { + new_file = zoocreate (temp_file); + close(fd); + } +} + if (new_file == NOFILE) prterror ('f', "Could not create temporary file %s.\n", temp_file);
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