diff options
Diffstat (limited to 'recipes-security/clamav/clamav-0.98.5/0002-Add-an-additional-n-after-the-number-in-the-pidfile.patch')
-rw-r--r-- | recipes-security/clamav/clamav-0.98.5/0002-Add-an-additional-n-after-the-number-in-the-pidfile.patch | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/recipes-security/clamav/clamav-0.98.5/0002-Add-an-additional-n-after-the-number-in-the-pidfile.patch b/recipes-security/clamav/clamav-0.98.5/0002-Add-an-additional-n-after-the-number-in-the-pidfile.patch deleted file mode 100644 index 6055bd1..0000000 --- a/recipes-security/clamav/clamav-0.98.5/0002-Add-an-additional-n-after-the-number-in-the-pidfile.patch +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | From 3ae8ea99a010e5c513aa48c3bfa15a65772f742b Mon Sep 17 00:00:00 2001 | ||
2 | From: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | ||
3 | Date: Sat, 29 Mar 2014 15:52:55 +0100 | ||
4 | Subject: Add an additional \n after the number in the pidfile | ||
5 | |||
6 | start-stop-daemon works without the \n in the file but pkill does not. | ||
7 | Also the output of cat $PifFile looks better :) | ||
8 | |||
9 | https://bugzilla.clamav.net/show_bug.cgi?id=10907 | ||
10 | |||
11 | Signed-off-by: Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | ||
12 | --- | ||
13 | clamav-milter/clamav-milter.c | 2 +- | ||
14 | clamd/server-th.c | 2 +- | ||
15 | freshclam/freshclam.c | 2 +- | ||
16 | 3 files changed, 3 insertions(+), 3 deletions(-) | ||
17 | |||
18 | diff --git a/clamav-milter/clamav-milter.c b/clamav-milter/clamav-milter.c | ||
19 | index b6ac9e157872..2c7a4d7d3414 100644 | ||
20 | --- a/clamav-milter/clamav-milter.c | ||
21 | +++ b/clamav-milter/clamav-milter.c | ||
22 | @@ -381,7 +381,7 @@ int main(int argc, char **argv) { | ||
23 | if((fd = fopen(opt->strarg, "w")) == NULL) { | ||
24 | logg("!Can't save PID in file %s\n", opt->strarg); | ||
25 | } else { | ||
26 | - if (fprintf(fd, "%u", (unsigned int)getpid())<0) { | ||
27 | + if (fprintf(fd, "%u\n", (unsigned int)getpid())<0) { | ||
28 | logg("!Can't save PID in file %s\n", opt->strarg); | ||
29 | } | ||
30 | fclose(fd); | ||
31 | diff --git a/clamd/server-th.c b/clamd/server-th.c | ||
32 | index 7ec5ae80cd64..d97cd6fb34e1 100644 | ||
33 | --- a/clamd/server-th.c | ||
34 | +++ b/clamd/server-th.c | ||
35 | @@ -1034,7 +1034,7 @@ int recvloop_th(int *socketds, unsigned nsockets, struct cl_engine *engine, unsi | ||
36 | if((fd = fopen(opt->strarg, "w")) == NULL) { | ||
37 | logg("!Can't save PID in file %s\n", opt->strarg); | ||
38 | } else { | ||
39 | - if (fprintf(fd, "%u", (unsigned int) mainpid)<0) { | ||
40 | + if (fprintf(fd, "%u\n", (unsigned int) mainpid)<0) { | ||
41 | logg("!Can't save PID in file %s\n", opt->strarg); | ||
42 | } | ||
43 | fclose(fd); | ||
44 | diff --git a/freshclam/freshclam.c b/freshclam/freshclam.c | ||
45 | index 1a3279966720..166586bf6447 100644 | ||
46 | --- a/freshclam/freshclam.c | ||
47 | +++ b/freshclam/freshclam.c | ||
48 | @@ -135,7 +135,7 @@ writepid (const char *pidfile) | ||
49 | } | ||
50 | else | ||
51 | { | ||
52 | - fprintf (fd, "%d", (int) getpid ()); | ||
53 | + fprintf (fd, "%d\n", (int) getpid ()); | ||
54 | fclose (fd); | ||
55 | } | ||
56 | umask (old_umask); | ||