aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel.s.kokron@nasa.gov <daniel.s.kokron@nasa.gov>2012-12-07 12:38:32 -0600
committerEric B Munson <emunson@mgebm.net>2012-12-07 18:16:27 -0500
commit64f641aa9d35f263603a3fdd4252cf42cfa7fc66 (patch)
tree40a44b74867269739ba97367aa843645bf73e8e8
parent2a478def078d2606a58b75a3c6b6ec28043c8409 (diff)
downloadlibhugetlbfs-64f641aa9d35f263603a3fdd4252cf42cfa7fc66.tar.gz
RE: [Libhugetlbfs-devel] update for clipped LD_LIBRARY_PATH
This patch resolves clipped LD_LIBRARY_PATH. Using hugectl to enable use of hugepage for an application on a system with SLES11 SP1. hugectl was clipping my LD_LIBRARY_PATH at 254 characters and preventing execution. NAME_MAX on my platform is 255. This patch allows LD_LIBRARY_PATH to be up to 4096 characters on my platform. Signed-off-by: Daniel Kokron <Daniel.Kokron@nasa.gov> Signed-off-by: Eric B Munson <emunson@mgebm.net>
-rw-r--r--hugectl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugectl.c b/hugectl.c
index 741247f..8f05595 100644
--- a/hugectl.c
+++ b/hugectl.c
@@ -271,7 +271,7 @@ void setup_mappings(int count)
void library_path(char *path)
{
- char val[NAME_MAX] = "";
+ char val[PATH_MAX] = "";
char *env;
env = getenv("LD_LIBRARY_PATH");