#91419# not modifying any file names created by mkstemp()
This commit is contained in:
parent
63a8687522
commit
b1e3c1d431
2 changed files with 11 additions and 7 deletions
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: idlccompile.cxx,v $
|
||||
*
|
||||
* $Revision: 1.7 $
|
||||
* $Revision: 1.8 $
|
||||
*
|
||||
* last change: $Author: rt $ $Date: 2001-08-20 10:44:50 $
|
||||
* last change: $Author: dbo $ $Date: 2001-08-23 07:21:56 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -182,8 +182,12 @@ OString makeTempName(const OString& prefix, const OString& postfix)
|
|||
#else
|
||||
(void) mktemp(tmpFilePattern);
|
||||
#endif
|
||||
if ( postfix.getLength() )
|
||||
strcat(tmpFilePattern, postfix.getStr());
|
||||
/** DBO (08/22/2002):
|
||||
since mkstemp() creates the file, it won't be removed anywhere later appending a postfix.
|
||||
Is the postfix necessarry?
|
||||
*/
|
||||
// if ( postfix.getLength() )
|
||||
// strcat(tmpFilePattern, postfix.getStr());
|
||||
#endif
|
||||
|
||||
#ifdef __OS2__
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
*
|
||||
* $RCSfile: idlcproduce.cxx,v $
|
||||
*
|
||||
* $Revision: 1.5 $
|
||||
* $Revision: 1.6 $
|
||||
*
|
||||
* last change: $Author: jsc $ $Date: 2001-08-17 13:03:26 $
|
||||
* last change: $Author: dbo $ $Date: 2001-08-23 07:21:56 $
|
||||
*
|
||||
* The Contents of this file are made available subject to the terms of
|
||||
* either of the following licenses
|
||||
|
@ -216,9 +216,9 @@ sal_Int32 SAL_CALL produceFile(const OString& fileName)
|
|||
OString strippedFileName(fileName.copy(fileName.lastIndexOf(SEPARATOR) + 1));
|
||||
OString tempName(strippedFileName.copy(0, strippedFileName.indexOf('.')));
|
||||
tempName += "_";
|
||||
tempName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "_idlc_");
|
||||
OString regTmpName( makeTempName(tempName, "._idlc_"));
|
||||
regFileName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "urd");
|
||||
regTmpName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "_idlc_");
|
||||
|
||||
RegistryLoader regLoader;
|
||||
RegistryTypeWriterLoader writerLoader;
|
||||
|
|
Loading…
Reference in a new issue