From 14e6afb83aff9232d62b7bbcbb79bde4a97b36b5 Mon Sep 17 00:00:00 2001 From: Johan Brichau Date: Sun, 4 Feb 2024 13:38:32 +0100 Subject: [PATCH] use GRPlatform current pathSeparator in the filename generation for temporary files on gemstone --- .../GRGemStonePlatform.class/instance/newTemporaryFileNamed..st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/Grease-GemStone-Core.package/GRGemStonePlatform.class/instance/newTemporaryFileNamed..st b/repository/Grease-GemStone-Core.package/GRGemStonePlatform.class/instance/newTemporaryFileNamed..st index 198e0779..6f8c5c0a 100644 --- a/repository/Grease-GemStone-Core.package/GRGemStonePlatform.class/instance/newTemporaryFileNamed..st +++ b/repository/Grease-GemStone-Core.package/GRGemStonePlatform.class/instance/newTemporaryFileNamed..st @@ -2,6 +2,6 @@ files newTemporaryFileNamed: aName | fileName | - fileName := '/tmp/', aName. + fileName := GRPlatform current pathSeparator,'tmp', GRPlatform current pathSeparator, aName. (self fileExists: fileName) ifTrue: [ GRError new signal: 'A (temporary) file with name ', aName, ' already exists.' ]. ^ (GsFile openWriteOnServer: fileName) pathName