Ignore invalid users/groups file

This commit is contained in:
crschnick 2024-08-31 08:21:01 +00:00
parent 89e0b74606
commit 26762d4d80

View file

@ -60,7 +60,7 @@ public class OpenFileSystemCache extends ShellControlCache {
var split = s.split(":");
try {
users.putIfAbsent(Integer.parseInt(split[2]), split[0]);
} catch (NumberFormatException ignored) {}
} catch (Exception ignored) {}
});
if (users.isEmpty()) {
@ -81,7 +81,7 @@ public class OpenFileSystemCache extends ShellControlCache {
var split = s.split(":");
try {
groups.putIfAbsent(Integer.parseInt(split[2]), split[0]);
} catch (NumberFormatException ignored) {}
} catch (Exception ignored) {}
});
if (groups.isEmpty()) {