From bc309988ad716a20523e049ba3746a53b9598568 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Wed, 14 Aug 2024 09:39:23 +0200 Subject: [PATCH] Update download-latest-java-tomcat.cfm --- download-latest-java-tomcat.cfm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/download-latest-java-tomcat.cfm b/download-latest-java-tomcat.cfm index 62d5093..96a1ab0 100644 --- a/download-latest-java-tomcat.cfm +++ b/download-latest-java-tomcat.cfm @@ -62,13 +62,19 @@ directoryDelete( tmpDest, true ); } + // lucee ignores permissions when extracting files function applyPermissions( src, dest ){ var files = directoryList( path="tgz://" & src, recurse=true, listinfo="query"); var dir =""; + var file = ""; systemOutput( files.columnlist, true ); loop query="files"{ - dir = mid(files.directory, find( "!", files.directory) + 1 ); + dir = mid(files.directory, find( "!", files.directory) + 2 ); systemOutput( "#dir# #files.name# #files.size# #files.type# #files.mode#", true ); + file = arguments.dest & dir & files.name; + systemOutput( file ); + fileSetAccessMode(file , files.mode ); + systemOutput( fileInfo( file ).mode, true ); } throw "stop!";