This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git
The following commit(s) were added to refs/heads/master by this push:
new 3394ad61 May not be supported [skip ci]
3394ad61 is described below
commit 3394ad612fe04e731aeb77f3dc47ede84134bc7e
Author: Sebb <[email protected]>
AuthorDate: Sat Nov 4 23:49:06 2023 +0000
May not be supported [skip ci]
---
.../java/org/apache/commons/crypto/NativeCodeLoader.java | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java
b/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java
index 61a195b6..e6acd385 100644
--- a/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java
+++ b/src/main/java/org/apache/commons/crypto/NativeCodeLoader.java
@@ -103,10 +103,14 @@ final class NativeCodeLoader {
if (isDebug()) {
debug("Extracted '%s' to '%s': %,d bytes [%s]",
nativeLibraryFilePath, extractedLibFile, byteCount,
Files.isExecutable(path) ? "X+" : "X-");
- final PosixFileAttributes attributes =
Files.readAttributes(path, PosixFileAttributes.class);
- if (attributes != null) {
- debug("Attributes '%s': %s %s %s", extractedLibFile,
attributes.permissions(),
- attributes.owner(), attributes.group());
+ try {
+ final PosixFileAttributes attributes =
Files.readAttributes(path, PosixFileAttributes.class);
+ if (attributes != null) {
+ debug("Attributes '%s': %s %s %s",
extractedLibFile, attributes.permissions(),
+ attributes.owner(), attributes.group());
+ }
+ } catch (final UnsupportedOperationException e) {
+ debug(e.getMessage());
}
}
} finally {