Skip to content

Commit

Permalink
maybe it doesn't like the dots
Browse files Browse the repository at this point in the history
  • Loading branch information
yawkat committed Dec 30, 2024
1 parent 64eb2c3 commit 3c0c956
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package io.micronaut.fuzzing.jazzer;

import org.gradle.api.file.DirectoryProperty;
import org.gradle.api.file.RegularFileProperty;
import org.gradle.api.tasks.InputFile;
import org.gradle.api.tasks.OutputDirectory;
import org.gradle.api.tasks.TaskAction;

Expand Down Expand Up @@ -44,7 +42,7 @@ public void run() throws IOException {
this_dir=$(dirname "$0")
LD_LIBRARY_PATH="$JVM_LD_LIBRARY_PATH":$this_dir $this_dir/jazzer_driver --agent_path=$this_dir/jazzer_agent_deploy.jar %s $@
""".formatted(String.join(" ", args));
Path targetPath = getOutputDirectory().file(targetClass.substring(targetClass.indexOf('.') + 1)).get().getAsFile().toPath();
Path targetPath = getOutputDirectory().file(targetClass.substring(targetClass.lastIndexOf('.') + 1)).get().getAsFile().toPath();
Files.writeString(targetPath, sh);
Files.setPosixFilePermissions(targetPath, Set.of(
PosixFilePermission.OWNER_READ,
Expand Down

0 comments on commit 3c0c956

Please sign in to comment.