You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am forwarding Debian bug report #857351 regarding the default file permissions for a newly created BibTeX database. Instead creating the new file with mode -rwxrwxrwx (0777), a default of -rw-rw-r-- (0664) or -rw-rw---- (0660) or -rw-r----- (0640) seems more appropriate. In any case, having the execute bit set doesn't make sense for a non-executable data file.
The current behavior was introduced by this line in PR #2281.
JabRef version 3.8.1 running on Linux
Steps to reproduce:
Open JabRef and select File -> New BibTeX Database
Select File -> Save Database
Observe the permission of the newly created file as having mode -rwxrwxrwx (0777)
There are several ways to fix this - e.g.:
// Try to save file permissions to restore them later (by default: 664)Set<PosixFilePermission> oldFilePermissions = PosixFilePermissions.fromString("rw-rw-r--");
# OR// 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);
The text was updated successfully, but these errors were encountered:
Thank you very much for forwarding this bug report and also for providing a solution.
I agree that having the x-bit set does not make sense.
I will provide a fix.
Thank you for reporting this issue. We think, that is already fixed in our development version and consequently the change will be included in the next release.
Hi,
I am forwarding Debian bug report #857351 regarding the default file permissions for a newly created BibTeX database. Instead creating the new file with mode
-rwxrwxrwx
(0777), a default of-rw-rw-r--
(0664) or-rw-rw----
(0660) or-rw-r-----
(0640) seems more appropriate. In any case, having the execute bit set doesn't make sense for a non-executable data file.The current behavior was introduced by this line in PR #2281.
JabRef version 3.8.1 running on Linux
Steps to reproduce:
-rwxrwxrwx
(0777)There are several ways to fix this - e.g.:
The text was updated successfully, but these errors were encountered: