diff options
author | Daniel Boelzle <dbo@openoffice.org> | 2001-08-23 06:21:56 +0000 |
---|---|---|
committer | Daniel Boelzle <dbo@openoffice.org> | 2001-08-23 06:21:56 +0000 |
commit | efadc52a8b3a3d63b7ec0c25adb62844adc2a822 (patch) | |
tree | 4e76586e73752dd51bb250577a60ef6603357af6 /idlc | |
parent | be1be3e9214b6ee8ea36649f1c9cbf2a9386ac69 (diff) |
#91419# not modifying any file names created by mkstemp()
Diffstat (limited to 'idlc')
-rw-r--r-- | idlc/source/idlccompile.cxx | 12 | ||||
-rw-r--r-- | idlc/source/idlcproduce.cxx | 6 |
2 files changed, 11 insertions, 7 deletions
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx index 37fdbd0b4..2c62d6826 100644 --- a/idlc/source/idlccompile.cxx +++ b/idlc/source/idlccompile.cxx @@ -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__ diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx index b65cd9166..f5727e7a7 100644 --- a/idlc/source/idlcproduce.cxx +++ b/idlc/source/idlcproduce.cxx @@ -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; |