Changeset: 0f046ecd89e8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0f046ecd89e8
Modified Files:
common/utils/mutils.c
Branch: Apr2011
Log Message:
make get_bin_path() return what is found also in Solaris,
such that mserver5 starts on Solaris also if not explicit modpath is given.
(otherwise, it failed to start with
!MALException:malInclude:could not open file: mal_init
)
diffs (11 lines):
diff --git a/common/utils/mutils.c b/common/utils/mutils.c
--- a/common/utils/mutils.c
+++ b/common/utils/mutils.c
@@ -310,6 +310,7 @@
const char *execn = getexecname();
/* copy, such that the caller can actually modify this string */
snprintf(_bin_path, sizeof(_bin_path), "%s", execn);
+ return _bin_path;
#else /* try Linux approach */
if (readlink("/proc/self/exe",
_bin_path, sizeof(_bin_path)) != -1)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list