From 3dd38a4a35885adf6ac2e0c6c4e38d36ab862441 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Sun, 29 Apr 2012 09:51:06 +0200 Subject: get rid of ZR_PATH_MAX As suggested by Amar Tumballi Change-Id: Id1cd74fd7530e8c846f3be4a88b1fa301a728cf1 BUG: 764655 Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.com/3243 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Vijay Bellur --- xlators/storage/bdb/src/bdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xlators/storage') diff --git a/xlators/storage/bdb/src/bdb.c b/xlators/storage/bdb/src/bdb.c index d13d5c87e49..1a5ef02b2f3 100644 --- a/xlators/storage/bdb/src/bdb.c +++ b/xlators/storage/bdb/src/bdb.c @@ -1409,8 +1409,8 @@ dir_read: this_entry->buf.st_ino = -1; if (S_ISLNK(this_entry->buf.st_mode)) { - char linkpath[ZR_PATH_MAX] = {0,}; - ret = readlink (entry_path, linkpath, ZR_PATH_MAX); + char linkpath[PATH_MAX] = {0,}; + ret = readlink (entry_path, linkpath, PATH_MAX); if (ret != -1) { linkpath[ret] = '\0'; this_entry->link = gf_strdup (linkpath); @@ -2630,7 +2630,7 @@ bdb_setdents (call_frame_t *frame, trav = entries->next; while (trav) { - char pathname[ZR_PATH_MAX] = {0,}; + char pathname[PATH_MAX] = {0,}; strcpy (pathname, entry_path); strcat (pathname, trav->name); -- cgit