Skip to content

Commit 42b451b

Browse files
committed
Fixed codehaus-plexus#47 - Archiver follows symlinks on Windows 7 - symlinks are not followed on Windows 7+ systems anymore
1 parent bb2c841 commit 42b451b

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
@@ -363,7 +363,7 @@ public void addFileSet( @Nonnull final FileSet fileSet )
363363

364364
private boolean isSymlinkSupported()
365365
{
366-
return Os.isFamily( Os.FAMILY_UNIX ) && Java7Reflector.isAtLeastJava7();
366+
return (Os.isFamily( Os.FAMILY_UNIX ) || Os.isFamily( Os.FAMILY_WINDOWS )) && Java7Reflector.isAtLeastJava7();
367367
}
368368

369369
@Override

0 commit comments

Comments
 (0)