[Git][java-team/plexus-utils2][master] Fixed FileUtils.copyFile() when the source is a symlink
Emmanuel Bourg
gitlab at salsa.debian.org
Mon Nov 26 08:20:59 GMT 2018
Emmanuel Bourg pushed to branch master at Debian Java Maintainers / plexus-utils2
Commits:
47852bec by Emmanuel Bourg at 2018-11-26T08:18:13Z
Fixed FileUtils.copyFile() when the source is a symlink
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/05-fix-nio-file-copy.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+plexus-utils2 (3.1.0-4) unstable; urgency=medium
+
+ * Team upload.
+ * Fixed a regression affecting FileUtils.copyFile() when the source file
+ is a symbolic link
+
+ -- Emmanuel Bourg <ebourg at apache.org> Mon, 26 Nov 2018 09:18:05 +0100
+
plexus-utils2 (3.1.0-3) unstable; urgency=medium
* Team upload.
=====================================
debian/patches/05-fix-nio-file-copy.patch
=====================================
@@ -0,0 +1,14 @@
+Description: Follow symlink when copying files with NIO
+Author: Michael Simacek <msimacek at redhat.com>
+Forwarded: https://github.com/codehaus-plexus/plexus-utils/issues/45
+--- a/src/main/java/org/codehaus/plexus/util/NioFiles.java
++++ b/src/main/java/org/codehaus/plexus/util/NioFiles.java
+@@ -138,7 +138,7 @@
+ throws IOException
+ {
+ Path copy = Files.copy( source.toPath(), target.toPath(), StandardCopyOption.REPLACE_EXISTING,
+- StandardCopyOption.COPY_ATTRIBUTES, LinkOption.NOFOLLOW_LINKS );
++ StandardCopyOption.COPY_ATTRIBUTES );
+ return copy.toFile();
+ }
+
=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@
02-propertyutils-compatibility.patch
03-maven-plugin-testing-compatibility.patch
04-fix-test-failures.patch
+05-fix-nio-file-copy.patch
View it on GitLab: https://salsa.debian.org/java-team/plexus-utils2/commit/47852becf25bdf1e3178efac835fde2b9dced80a
--
View it on GitLab: https://salsa.debian.org/java-team/plexus-utils2/commit/47852becf25bdf1e3178efac835fde2b9dced80a
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20181126/5ef0b214/attachment.html>
More information about the pkg-java-commits
mailing list