Changeset 5599
- Timestamp:
- 2003-10-07T17:12:44+13:00 (21 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/collectoraction.cpp
r3546 r5599 324 324 325 325 // assign (and create) a temporary directory 326 assign_tmpname (args, logout); 326 if (assign_tmpname (args, logout)==false) { 327 // there was an error creating the tmp dir 328 message="tmpfail"; 329 return true; // true because we could still parse the arguments 330 } 327 331 328 332 // clean up any old builds left laying about in the tmp directory … … 1542 1546 // assigns a temporary directory name for this collector session 1543 1547 // and creates temporary directory 1544 void collectoraction::assign_tmpname (cgiargsclass &args, ostream &logout) { 1548 // returns false if it couldn't create the directory 1549 bool collectoraction::assign_tmpname (cgiargsclass &args, ostream &logout) { 1545 1550 1546 1551 int i = 0; … … 1556 1561 logout << text_t2ascii << "collectoraction::assign_tmpname unable to create directory (" 1557 1562 << fulltmpdir << ")\n"; 1563 return false; 1558 1564 } 1559 1565 1560 1566 args["bc1tmp"] = tmpname; 1567 return true; 1561 1568 } 1562 1569 -
trunk/gsdl/src/recpt/collectoraction.h
r3546 r5599 77 77 bool collection_protected (const text_t &collection); 78 78 79 voidassign_tmpname (cgiargsclass &args, ostream &logout);79 bool assign_tmpname (cgiargsclass &args, ostream &logout); 80 80 81 81 void gsdl_mkcol (cgiargsclass &args, ostream &logout);
Note:
See TracChangeset
for help on using the changeset viewer.