Skip to content
Snippets Groups Projects
Verified Commit 71f839e6 authored by Timm Fitschen's avatar Timm Fitschen
Browse files
parent e70bbafc
Branches
Tags
2 merge requests!66REL: prepare release 0.8.0,!64BUG: Fix for https://gitlab.com/caosdb/caosdb-server/-/issues/148
Pipeline #24961 passed
...@@ -525,7 +525,7 @@ public class FileUtils { ...@@ -525,7 +525,7 @@ public class FileUtils {
} }
private static void callPosixUnlink(File file) throws IOException, InterruptedException { 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) { if (cmd.waitFor() != 0) {
throw new CaosDBException("could not unlink " + file.getAbsolutePath()); throw new CaosDBException("could not unlink " + file.getAbsolutePath());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment