From 2592a77248e7f0ea066d16a06c76fee49431f040 Mon Sep 17 00:00:00 2001 From: Vanilla Hsu Date: Thu, 25 Jul 2013 12:55:31 -0700 Subject: [PATCH] fix embedded_data on freebsd - remove hardcoded path in embedded_data --- hphp/util/embedded_data.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hphp/util/embedded_data.cpp b/hphp/util/embedded_data.cpp index b2a6c4247..b56c24eb7 100644 --- a/hphp/util/embedded_data.cpp +++ b/hphp/util/embedded_data.cpp @@ -68,7 +68,7 @@ bool get_embedded_data(const char *section, embedded_data* desc) { if (!strcmp(section, name)) { GElf_Shdr ghdr; if (gelf_getshdr(scn, &ghdr) != &ghdr) return false; - desc->m_filename = "/proc/self/exe"; + desc->m_filename = current_executable_path(); desc->m_start = ghdr.sh_offset; desc->m_len = ghdr.sh_size; return true;