summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors/nano/files/1.3-nanopermsfix.patch')
-rw-r--r--app-editors/nano/files/1.3-nanopermsfix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-editors/nano/files/1.3-nanopermsfix.patch b/app-editors/nano/files/1.3-nanopermsfix.patch
new file mode 100644
index 000000000000..68d9f77104b8
--- /dev/null
+++ b/app-editors/nano/files/1.3-nanopermsfix.patch
@@ -0,0 +1,12 @@
+diff -ur nano-1.3.3/src/files.c nano-1.3.3-fixed/src/files.c
+--- nano-1.3.3/src/files.c 2004-06-21 23:03:00.000000000 -0400
++++ nano-1.3.3-fixed/src/files.c 2004-07-06 09:58:56.000000000 -0400
+@@ -1619,7 +1619,7 @@
+ * is now copied from joe, because wiggy says so *shrug*. */
+ fd = open(realname, O_WRONLY | O_CREAT |
+ (append == 1 ? O_APPEND : (tmp ? O_EXCL : O_TRUNC)),
+- S_IRUSR | S_IWUSR);
++ S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH);
+
+ /* Put the umask back to the user's original value. */
+ umask(original_umask);