summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xlators/mgmt/glusterd/src/glusterd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd.c b/xlators/mgmt/glusterd/src/glusterd.c
index d915e62143c..4f99a736dcf 100644
--- a/xlators/mgmt/glusterd/src/glusterd.c
+++ b/xlators/mgmt/glusterd/src/glusterd.c
@@ -1225,7 +1225,7 @@ glusterd_init_uds_listener (xlator_t *this)
dict_t *options = NULL;
rpcsvc_t *rpc = NULL;
data_t *sock_data = NULL;
- char sockfile[PATH_MAX+1] = {0,};
+ char sockfile[UNIX_PATH_MAX+1] = {0,};
int i = 0;
@@ -1233,9 +1233,9 @@ glusterd_init_uds_listener (xlator_t *this)
sock_data = dict_get (this->options, "glusterd-sockfile");
if (!sock_data) {
- strncpy (sockfile, DEFAULT_GLUSTERD_SOCKFILE, PATH_MAX);
+ strncpy (sockfile, DEFAULT_GLUSTERD_SOCKFILE, UNIX_PATH_MAX);
} else {
- strncpy (sockfile, sock_data->data, PATH_MAX);
+ strncpy (sockfile, sock_data->data, UNIX_PATH_MAX);
}
options = dict_new ();
@@ -1320,9 +1320,9 @@ glusterd_stop_uds_listener (xlator_t *this)
sock_data = dict_get (this->options, "glusterd-sockfile");
if (!sock_data) {
- strncpy (sockfile, DEFAULT_GLUSTERD_SOCKFILE, PATH_MAX);
+ strncpy (sockfile, DEFAULT_GLUSTERD_SOCKFILE, UNIX_PATH_MAX);
} else {
- strncpy (sockfile, sock_data->data, PATH_MAX);
+ strncpy (sockfile, sock_data->data, UNIX_PATH_MAX);
}
unlink (sockfile);