summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d4413db)
raw | patch | inline | side by side (parent: d4413db)
author | Alin Dobre <alinmd@gmail.com> | |
Fri, 11 Oct 2013 10:18:57 +0000 (11:18 +0100) | ||
committer | Alin Dobre <alinmd@gmail.com> | |
Fri, 11 Oct 2013 10:18:57 +0000 (11:18 +0100) |
Signed-off-by: Alin Dobre <alinmd@gmail.com>
debian/patches/bts664724-rrdcached-j-segfault | [deleted file] | patch | blob | history |
debian/patches/series | patch | blob | history |
diff --git a/debian/patches/bts664724-rrdcached-j-segfault b/debian/patches/bts664724-rrdcached-j-segfault
+++ /dev/null
@@ -1,31 +0,0 @@
-diff a/src/rrd_daemon.c b/src/rrd_daemon.c
---- a/src/rrd_daemon.c
-+++ b/src/rrd_daemon.c
-@@ -3090,8 +3090,7 @@ static int read_options (int argc, char **argv) /* {{{ */
- case 'j':
- {
- char journal_dir_actual[PATH_MAX];
-- const char *dir;
-- dir = journal_dir = strdup(realpath((const char *)optarg, journal_dir_actual));
-+ const char *dir = (const char *)optarg;
-
- status = rrd_mkdir_p(dir, 0777);
- if (status != 0)
-@@ -3100,8 +3099,16 @@ static int read_options (int argc, char **argv) /* {{{ */
- dir, rrd_strerror(errno));
- return 6;
- }
-+ journal_dir = realpath((const char *)dir, journal_dir_actual);
-+ if (! journal_dir) {
-+ fprintf(stderr, "Failed to canonicalize journal directory '%s': %s\n",
-+ dir, rrd_strerror(errno));
-+ return 6;
-+ }
-+
-+ journal_dir = strdup(journal_dir);
-
-- if (access(dir, R_OK|W_OK|X_OK) != 0)
-+ if (access(journal_dir, R_OK|W_OK|X_OK) != 0)
- {
- fprintf(stderr, "Must specify a writable directory with -j! (%s)\n",
- errno ? rrd_strerror(errno) : "");
diff --git a/debian/patches/series b/debian/patches/series
index 0c19ecd0b9fd64698400454d632624755bfe7c7a..e472686769fb37a4d5bcdabd40668061ac5a8c58 100644 (file)
--- a/debian/patches/series
+++ b/debian/patches/series
no-rpath-for-perl
implicit-decl-fix
bts530814-hurd
-bts664724-rrdcached-j-segfault