From 71f839e62dfbf2467cb773cebf00a606f499bf8c Mon Sep 17 00:00:00 2001 From: Timm Fitschen <t.fitschen@indiscale.com> Date: Thu, 30 Jun 2022 21:22:55 +0200 Subject: [PATCH] BUG: Fix for https://gitlab.com/caosdb/caosdb-server/-/issues/148 --- src/main/java/org/caosdb/server/utils/FileUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/caosdb/server/utils/FileUtils.java b/src/main/java/org/caosdb/server/utils/FileUtils.java index 70ba0030..eb4270f8 100644 --- a/src/main/java/org/caosdb/server/utils/FileUtils.java +++ b/src/main/java/org/caosdb/server/utils/FileUtils.java @@ -525,7 +525,7 @@ public class FileUtils { } private static void callPosixUnlink(File file) throws IOException, InterruptedException { - final Process cmd = Runtime.getRuntime().exec("unlink " + file.getAbsolutePath()); + final Process cmd = Runtime.getRuntime().exec(new String[] {"unlink", file.getAbsolutePath()}); if (cmd.waitFor() != 0) { throw new CaosDBException("could not unlink " + file.getAbsolutePath()); } -- GitLab