This is an automated email from the git hooks/post-receive script. tmancill pushed a commit to branch master in repository jabref.
commit 1b8b418f78c66e8650c30f0c4e6edf0cd69e1f3f Author: tony mancill <tmanc...@debian.org> Date: Sun Apr 8 16:26:24 2018 -0700 Apply upstream patch for file perms (Closes: #857351) --- debian/patches/060_0664_perms.patch | 33 +++++++++++++++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 34 insertions(+) diff --git a/debian/patches/060_0664_perms.patch b/debian/patches/060_0664_perms.patch new file mode 100644 index 0000000..ff5940a --- /dev/null +++ b/debian/patches/060_0664_perms.patch @@ -0,0 +1,33 @@ +Description: newly created libraries are created with mode 664 +Author: Siedlerchr <siedlerkil...@gmail.com> +Forwarded: not-needed +Source: https://patch-diff.githubusercontent.com/raw/JabRef/jabref/pull/2637.patch +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=857351 + +Index: jabref/src/main/java/net/sf/jabref/logic/exporter/FileSaveSession.java +=================================================================== +--- jabref.orig/src/main/java/net/sf/jabref/logic/exporter/FileSaveSession.java ++++ jabref/src/main/java/net/sf/jabref/logic/exporter/FileSaveSession.java +@@ -38,7 +38,6 @@ public class FileSaveSession extends Sav + private static final String TEMP_SUFFIX = "save.bib"; + private final Path temporaryFile; + +- + public FileSaveSession(Charset encoding, boolean backup) throws SaveException { + this(encoding, backup, createTemporaryFile()); + } +@@ -86,8 +85,12 @@ public class FileSaveSession extends Sav + LOGGER.error("Error when creating lock file.", ex); + } + +- // Try to save file permissions to restore them later (by default: allow everything) +- Set<PosixFilePermission> oldFilePermissions = EnumSet.allOf(PosixFilePermission.class); ++ // Try to save file permissions to restore them later (by default: 664) ++ Set<PosixFilePermission> oldFilePermissions = EnumSet.of(PosixFilePermission.OWNER_READ, ++ PosixFilePermission.OWNER_WRITE, ++ PosixFilePermission.GROUP_READ, ++ PosixFilePermission.GROUP_WRITE, ++ PosixFilePermission.OTHERS_READ); + if (FileUtil.isPosixCompilant && Files.exists(file)) { + try { + oldFilePermissions = Files.getPosixFilePermissions(file); diff --git a/debian/patches/series b/debian/patches/series index bb6ebe7..6e39d42 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ 020_disable_automatic_upgrade_check.patch 030_xjc.patch 050_unirest_json.patch +060_0664_perms.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jabref.git _______________________________________________ pkg-java-commits mailing list pkg-java-comm...@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits