summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/watchfolder/files')
-rw-r--r--app-admin/watchfolder/files/0.3.3-64bit.patch11
-rw-r--r--app-admin/watchfolder/files/0.3.3-fortify-sources.patch11
2 files changed, 22 insertions, 0 deletions
diff --git a/app-admin/watchfolder/files/0.3.3-64bit.patch b/app-admin/watchfolder/files/0.3.3-64bit.patch
new file mode 100644
index 000000000000..ea78be4fe295
--- /dev/null
+++ b/app-admin/watchfolder/files/0.3.3-64bit.patch
@@ -0,0 +1,11 @@
+--- watchd-0.3.3/watchd.c.orig 2006-02-23 12:33:32.000000000 -0500
++++ watchd-0.3.3/watchd.c 2006-02-23 12:45:30.000000000 -0500
+@@ -176,7 +176,7 @@
+ // free(p2tmp);
+
+ p2tmp=strchr(p2,0xa); // Not very nice,
+- p2[(int)p2tmp-(int)p2]=0x00; // but in fact: It works ;)
++ *(p2+(p2tmp-p2))=0x00; // but in fact: It works ;)
+
+ while (p2[0]==' ') {p2++;} // Again, quick and dirty..
+ while (p1[strlen(p1)-1]==' ') {p1[strlen(p1)-1]=0;} // Need to say anything?;)
diff --git a/app-admin/watchfolder/files/0.3.3-fortify-sources.patch b/app-admin/watchfolder/files/0.3.3-fortify-sources.patch
new file mode 100644
index 000000000000..c9e47038612f
--- /dev/null
+++ b/app-admin/watchfolder/files/0.3.3-fortify-sources.patch
@@ -0,0 +1,11 @@
+--- watchd.c 2009-02-27 23:46:42.000000000 +0000
++++ watchd.c 2009-02-27 23:50:22.000000000 +0000
+@@ -671,7 +671,7 @@
+ {
+ if (folder->flags&FL_LOG_FILE)
+ {
+- log=open(curfolder->logfile, O_CREAT | O_WRONLY | O_APPEND );
++ log=open(curfolder->logfile, O_CREAT | O_WRONLY | O_APPEND, S_IRUSR | S_IWUSR );
+ if (log>0)
+ {
+ lseek(fd, SEEK_SET, 0); // Rewind temp log file..