diff options
author | Sanju Rakonde <srakonde@redhat.com> | 2018-09-21 12:45:12 +0530 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2018-09-22 13:35:26 +0000 |
commit | b7732b9c069179aaa71a3463400fa438d1769f6c (patch) | |
tree | e1b8e4d38ec4a310e6449e2353f7c2e735448e6e /xlators | |
parent | 28bc9e4bf74fd31a9620478b0a0ed482798b5915 (diff) |
glusterd: reduce length allocated to name
In glusterd_proc_ and glusterd_svc_ structures name is having
length of PATH_MAX, allocating NAME_MAX will be sufficient.
Change-Id: I637ba00e1a80ca6a1ecc0c2dbf180c4633c1ca5b
updates: bz#1193929
Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-proc-mgmt.h | 2 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-svc-mgmt.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.h b/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.h index 36ad5ae6731..e8e9ffc5082 100644 --- a/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.h +++ b/xlators/mgmt/glusterd/src/glusterd-proc-mgmt.h @@ -22,7 +22,7 @@ enum proc_flags { }; struct glusterd_proc_ { - char name[PATH_MAX]; + char name[NAME_MAX]; char pidfile[PATH_MAX]; char logdir[PATH_MAX]; char logfile[PATH_MAX]; diff --git a/xlators/mgmt/glusterd/src/glusterd-svc-mgmt.h b/xlators/mgmt/glusterd/src/glusterd-svc-mgmt.h index 3bf142b58d3..c850bfda68f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-svc-mgmt.h +++ b/xlators/mgmt/glusterd/src/glusterd-svc-mgmt.h @@ -26,7 +26,7 @@ typedef int (*glusterd_svc_stop_t)(glusterd_svc_t *svc, int sig); typedef int (*glusterd_svc_reconfigure_t)(void *data); struct glusterd_svc_ { - char name[PATH_MAX]; + char name[NAME_MAX]; glusterd_conn_t conn; glusterd_proc_t proc; glusterd_svc_manager_t manager; |