/[packages]/updates/1/xymon/current/SOURCES/xymon-4.2.3-fix-remote-file-deletion-vulnerability.patch
ViewVC logotype

Contents of /updates/1/xymon/current/SOURCES/xymon-4.2.3-fix-remote-file-deletion-vulnerability.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 461263 - (show annotations) (download)
Tue Jul 30 16:27:24 2013 UTC (10 years, 8 months ago) by neoclust
File size: 966 byte(s)
Fix security issue http://seclists.org/oss-sec/2013/q3/212
1 diff --git a/hobbitd/hobbitd_hostdata.c b/hobbitd/hobbitd_hostdata.c
2 index d4a5d0a..95c8879 100644
3 --- a/hobbitd/hobbitd_hostdata.c
4 +++ b/hobbitd/hobbitd_hostdata.c
5 @@ -11,7 +11,7 @@
6 /* */
7 /*----------------------------------------------------------------------------*/
8
9 -static char rcsid[] = "$Id: hobbitd_hostdata.c,v 1.5 2006-07-20 16:06:41 henrik Exp $";
10 +static char rcsid[] = "$Id: hobbitd_hostdata.c 7199 2013-07-23 05:27:30Z storner $";
11
12 #include <sys/stat.h>
13 #include <sys/types.h>
14 diff --git a/hobbitd/hobbitd_rrd.c b/hobbitd/hobbitd_rrd.c
15 index deec804..ddcf4dd 100644
16 --- a/hobbitd/hobbitd_rrd.c
17 +++ b/hobbitd/hobbitd_rrd.c
18 @@ -178,7 +178,7 @@ int main(int argc, char *argv[])
19
20 MEMDEFINE(hostdir);
21
22 - sprintf(hostdir, "%s/%s", rrddir, hostname);
23 + sprintf(hostdir, "%s/%s", rrddir, basename(hostname));
24 dropdirectory(hostdir, 1);
25
26 MEMUNDEFINE(hostdir);

  ViewVC Help
Powered by ViewVC 1.1.30