Skip to content

Commit 6e4a658

Browse files
committed
Use constant UnixStat
1 parent 3c5fc72 commit 6e4a658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/codehaus/plexus/archiver/dir/DirectoryArchiver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ else if ( !outFile.mkdirs() )
168168
{
169169
// compute relative path
170170
String relative = outFile.getAbsolutePath().replaceFirst(getDestFile().getAbsolutePath(), ".");
171-
getLogger().info( "Set chmod " + Integer.toOctalString( 0x0fff & entry.getMode() ) + " for " + relative );
171+
getLogger().info( "Set chmod " + Integer.toString( UnixStat.PERM_MASK & entry.getMode() ) + " for " + relative );
172172
// call chmod (java or system)
173173
ArchiveEntryUtils.chmod( outFile, entry.getMode(), getLogger(), isUseJvmChmod() );
174174
}

0 commit comments

Comments
 (0)