Skip to content
Snippets Groups Projects
Commit 4c30684e authored by juanf's avatar juanf
Browse files

SSDM-13521: Removing Posix in favour of Unix replacement

parent e16b78b9
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -42,7 +42,17 @@ public final class Unix ...@@ -42,7 +42,17 @@ public final class Unix
} }
public static boolean isOperational() { public static boolean isOperational() {
return File.separatorChar == '/'; //On Posix systems the value of this field is '/' boolean isPosixFileSystem = File.separatorChar == '/'; //On Posix systems the value of this field is '/';
boolean isIdCommandLineToolAvailable;
try {
getUid();
isIdCommandLineToolAvailable = true;
} catch (Throwable t) {
isIdCommandLineToolAvailable = false;
}
return isPosixFileSystem && isIdCommandLineToolAvailable;
} }
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment