Patchwork [BUG:2534,1/1] mgmt/glusterd: Use PATH_MAX for pid_file.

login
register
Submitter Mohammed Junaid Ahmed
Date 2011-03-16 18:41:45
Message ID <20110316184145.GA6810@junaid@gluster.com>
Download mbox | patch
Permalink /patch/6492/
State Accepted
Headers show

Comments

Mohammed Junaid Ahmed - 2011-03-16 18:41:45
Signed-off-by: Junaid <junaid@gluster.com>
---
 xlators/mgmt/glusterd/src/glusterd-op-sm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c
index 56f296e..3806242 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);