jlec 15/06/05 14:54:42
Added: fsniper-1.3.1-format-security.patch
fsniper-1.3.1-umask.patch
Log:
Bump to EAPI=5; import fedora patches, bug #521088
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key
E9402A79B03529A2!)
Revision Changes Path
1.1 app-misc/fsniper/files/fsniper-1.3.1-format-security.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/fsniper/files/fsniper-1.3.1-format-security.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/fsniper/files/fsniper-1.3.1-format-security.patch?rev=1.1&content-type=text/plain
Index: fsniper-1.3.1-format-security.patch
===================================================================
>From d15abeb19d1692698e0ec8a9f4a764a210e57a2b Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <[email protected]>
Date: Tue, 3 Dec 2013 10:50:29 +0100
Subject: [PATCH] Fix an error message
This patch fixes https://bugzilla.redhat.com/show_bug.cgi?id=1037073
---
src/handle_event.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/handle_event.c b/src/handle_event.c
index
22f35f10ea3a6083c2ef933f794b529b8879a1ed..cac004b76917c192ad9bf8801062d701e4dc18c6
100644
--- a/src/handle_event.c
+++ b/src/handle_event.c
@@ -313,7 +313,7 @@ void handle_event(struct inotify_event* event, int writefd)
if (sysret == 127)
{
temp = malloc(27 + strlen(handler->value) + 20 + 1);
- sprintf("Could not execute handler \"%s\", trying next one.\n",
handler->value);
+ sprintf(temp, "Could not execute handler \"%s\", trying next
one.\n", handler->value);
write_out(writefd, temp);
free(temp);
--
1.8.4.2
1.1 app-misc/fsniper/files/fsniper-1.3.1-umask.patch
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/fsniper/files/fsniper-1.3.1-umask.patch?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-misc/fsniper/files/fsniper-1.3.1-umask.patch?rev=1.1&content-type=text/plain
Index: fsniper-1.3.1-umask.patch
===================================================================
X-Git-Url:
http://code.l3ib.org/?p=fsniper.git;a=blobdiff_plain;f=src%2Fmain.c;fp=src%2Fmain.c;h=cd49dffebe4b4c728b62c28c1381c4fb6f5ad87d;hp=03a8d701d6f9802ba346b591429e58741ca53479;hb=82cb0b46c48485fd4f6231ce3169c7be87d1ea07;hpb=2bbeb5d6e6b55bb9692c043fcdbeab15d9723c9e
diff --git a/src/main.c b/src/main.c
index 03a8d70..cd49dff 100644
--- a/src/main.c
+++ b/src/main.c
@@ -153,7 +153,10 @@ char *get_pid_filename()
void write_pid_file(char *pidfilename)
{
FILE *pidfile;
+ mode_t umask_old;
+ umask_old = umask(0177);
pidfile = fopen(pidfilename, "w");
+ umask(umask_old);
fprintf(pidfile, "%d", getpid());
fclose(pidfile);
}