Skip to content

Commit

Permalink
#371 'posix fallback bug' - added fallback in case of UnsupportedOper…
Browse files Browse the repository at this point in the history
…ationException (#376)

* #371 'posix fallback bug' - added fallback in case of UnsupportOperationException

* #371 'posix fallback bug' - changelog update
  • Loading branch information
glebsts authored and bsideup committed Jun 20, 2017
1 parent 23e5995 commit 82485c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file.
- Added `TC_DAEMON` JDBC URL flag to prevent `ContainerDatabaseDriver` from shutting down containers at the time all connections are closed. (#359, #360)
- Added pre-flight checks (can be disabled with `checks.disable` configuration property) (#363)
- Removed unused Jersey dependencies (#361)
- Fixed non-POSIX fallback for file attribute reading (#371)

## [1.3.0] - 2017-06-05
### Fixed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ private int getUnixFileMode(final String pathAsString) {
final Path path = Paths.get(pathAsString);
try {
return (int) Files.getAttribute(path, "unix:mode");
} catch (IOException e) {
} catch (IOException | UnsupportedOperationException e) {
// fallback for non-posix environments
int mode = DEFAULT_FILE_MODE;
if (Files.isDirectory(path)) {
Expand Down

0 comments on commit 82485c9

Please sign in to comment.