Control: tag -1 moreinfo
On Sat, Jan 19, 2013 at 14:27:47 +0100, Patrick Matthäi wrote:
> +diff -Naur glusterfs-3.2.7.orig/libglusterfs/src/statedump.c glusterfs-3.2.7/libglusterfs/src/statedump.c
> +--- glusterfs-3.2.7.orig/libglusterfs/src/statedump.c 2012-06-10 19:44:15.000000000 +0200
> ++++ glusterfs-3.2.7/libglusterfs/src/statedump.c 2013-01-19 13:49:26.415982036 +0100
> +@@ -408,12 +404,13 @@
> + void
> + gf_proc_dump_info (int signum)
> + {
> +- int ret = -1;
> +- glusterfs_ctx_t *ctx = NULL;
> +-
> ++ int ret = -1;
> ++ glusterfs_ctx_t *ctx = NULL;
> ++ char brick_name[PATH_MAX] = {0,};
> ++ char tmp_dump_name[] = "/tmp/dumpXXXXXX";
> ++ char path[PATH_MAX] = {0,};
> +
> + gf_proc_dump_lock ();
> +- ret = gf_proc_dump_open ();
> + if (ret < 0)
> + goto out;
> +
How can that possibly work?
Cheers,
Julien
Attachment:
signature.asc
Description: Digital signature