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 ab769c724 Comment: The arguments are octal values
ab769c724 is described below
commit ab769c724b084f914c6886cb77d99a562d84fd44
Author: Gary Gregory <[email protected]>
AuthorDate: Fri May 24 14:44:47 2024 -0400
Comment: The arguments are octal values
---
.../compress/archivers/dump/DumpArchiveEntry.java | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
b/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
index e0bdff348..149a3a72b 100644
---
a/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
+++
b/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveEntry.java
@@ -172,9 +172,23 @@ import org.apache.commons.compress.archivers.ArchiveEntry;
* @NotThreadSafe
*/
public class DumpArchiveEntry implements ArchiveEntry {
+
public enum PERMISSION {
- SETUID(04000), SETGUI(02000), STICKY(01000), USER_READ(00400),
USER_WRITE(00200), USER_EXEC(00100), GROUP_READ(00040), GROUP_WRITE(00020),
- GROUP_EXEC(00010), WORLD_READ(00004), WORLD_WRITE(00002),
WORLD_EXEC(00001);
+ // Note: The arguments are octal values
+ // @formatter:off
+ SETUID(04000),
+ SETGUI(02000),
+ STICKY(01000),
+ USER_READ(00400),
+ USER_WRITE(00200),
+ USER_EXEC(00100),
+ GROUP_READ(00040),
+ GROUP_WRITE(00020),
+ GROUP_EXEC(00010),
+ WORLD_READ(00004),
+ WORLD_WRITE(00002),
+ WORLD_EXEC(00001);
+ // @formatter:on
public static Set<PERMISSION> find(final int code) {
final Set<PERMISSION> set = new HashSet<>();