Fix temp dirs creation (#2209)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-01-21 11:38:48 +02:00
committed by GitHub
parent 567e8b38f1
commit fe518fc4fa
2 changed files with 8 additions and 4 deletions

View File

@@ -119,7 +119,12 @@ public abstract class AbstractArtifactRepository implements ArtifactRepository {
}
// try, if not supported - ok
if (!file.setExecutable(false)) {
log.debug("Can't set executable permissions for temp file {}", file);
log.debug("Can't remove executable permissions for temp file {}", file);
}
if (directory) {
if (!file.setExecutable(true, true)) {
log.debug("Can't set executable permissions for temp directory {} for the owner", file);
}
}
return file;
} catch (final IOException e) {