mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Ignore invalid users/groups file
This commit is contained in:
parent
89e0b74606
commit
26762d4d80
1 changed files with 2 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue