summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-op-sm.c
diff options
context:
space:
mode:
authorMohammed Junaid Ahmed <junaid@gluster.com>2011-03-16 13:11:45 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-16 22:24:25 -0700
commitb44b06a9d0adb50b426e0ee195a9867e01240ada (patch)
treeb4335f61490658a76ed557fafec17c4ff9b23558 /xlators/mgmt/glusterd/src/glusterd-op-sm.c
parent9796d4bf3015042f1b2bef22a2be6c22fed4cf4d (diff)
mgmt/glusterd: Use PATH_MAX for pid_file.
Signed-off-by: Junaid <junaid@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2534 (Glusterd crashes on gsync stop.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2534
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-op-sm.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-op-sm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 56f296e56df..38062426abc 100644
--- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c
+++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
@@ -3610,7 +3610,7 @@ stop_gsync (char *master, char *slave, char **op_errstr)
int32_t status = 0;
pid_t pid = 0;
FILE *file = NULL;
- char pidfile[1024] = {0,};
+ char pidfile[PATH_MAX] = {0,};
char buf [256] = {0,};
ret = gsync_status (master, slave, &status);