summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-news/liferea/files/liferea-1.2.23-backup-perms.patch')
-rw-r--r--net-news/liferea/files/liferea-1.2.23-backup-perms.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/net-news/liferea/files/liferea-1.2.23-backup-perms.patch b/net-news/liferea/files/liferea-1.2.23-backup-perms.patch
deleted file mode 100644
index c0c2464e822a..000000000000
--- a/net-news/liferea/files/liferea-1.2.23-backup-perms.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN liferea-1.2.23.orig/src/common.c liferea-1.2.23/src/common.c
---- liferea-1.2.23.orig/src/common.c 2007-08-19 13:17:58.000000000 -0400
-+++ liferea-1.2.23/src/common.c 2007-10-31 22:42:36.000000000 -0400
-@@ -908,6 +908,9 @@ static void common_init_cache_path(void)
-
- g_free(cachePath);
- /* lifereaUserPath reused globally */
-+
-+ /* ensure reasonable default umask */
-+ umask (077);
- }
-
- const gchar * common_get_cache_path(void) {
-diff --exclude-from=/home/dang/.scripts/diffrc -up -ruN liferea-1.2.23.orig/src/export.c liferea-1.2.23/src/export.c
---- liferea-1.2.23.orig/src/export.c 2007-06-20 18:22:10.000000000 -0400
-+++ liferea-1.2.23/src/export.c 2007-10-31 22:43:35.000000000 -0400
-@@ -126,15 +126,15 @@ gboolean export_OPML_feedlist(const gcha
- error = TRUE;
- }
-
-- if(trusted)
-- old_umask = umask(077);
-+ if(!trusted)
-+ old_umask = umask(022); /* give read permissions for other, per-default we wouldn't give it... */
-
- if(-1 == common_save_xml(doc, backupFilename)) {
- g_warning("Could not export to OPML file!!");
- error = TRUE;
- }
-
-- if(trusted)
-+ if(!trusted)
- umask(old_umask);
-
- xmlFreeDoc(doc);