Skip to content

Commit 9e8faac

Browse files
committed
don't apply umask on unknown perms (Win)
1 parent eded2d8 commit 9e8faac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/codehaus/plexus/archiver/AbstractArchiver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ protected ArchiveEntry asArchiveEntry( @Nonnull final PlexusIoResource resource,
450450
throw new ArchiverException( resource.getName() + " not found." );
451451
}
452452

453-
if ( umask > 0 )
453+
if ( umask > 0 && permissions != PlexusIoResourceAttributes.UNKNOWN_OCTAL_MODE )
454454
{
455455
permissions &= ~umask;
456456
}

0 commit comments

Comments
 (0)