This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git
The following commit(s) were added to refs/heads/master by this push:
new cbc0516af Use SystemProperties
cbc0516af is described below
commit cbc0516afa26dd0ff2fd5e797e78814216f8549d
Author: Gary D. Gregory <[email protected]>
AuthorDate: Sun Jul 20 14:36:29 2025 -0400
Use SystemProperties
---
.../java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
index 19c2906c2..17e7804cf 100644
---
a/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
+++
b/src/main/java/org/apache/commons/compress/archivers/tar/TarArchiveEntry.java
@@ -388,7 +388,7 @@ private static Instant parseInstantFromDecimalSeconds(final
String value) throws
* Constructs an empty entry and prepares the header values.
*/
private TarArchiveEntry(final boolean preserveAbsolutePath) {
- String user = System.getProperty("user.name", "");
+ String user = SystemProperties.getUserName("");
if (user.length() > MAX_NAMELEN) {
user = user.substring(0, MAX_NAMELEN);
}