[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-3180-g593d855

Jeremy Allison jra at samba.org
Thu Jul 10 22:26:23 GMT 2008


The branch, v3-3-test has been updated
       via  593d855128d4119c21b2b15bfb9369b760504f86 (commit)
       via  5fdbf89c898efff57c65061ea2c360d2cd91bcec (commit)
      from  d7f759d302612ef9eb0bba022f3b3e1dd433f843 (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test


- Log -----------------------------------------------------------------
commit 593d855128d4119c21b2b15bfb9369b760504f86
Merge: 5fdbf89c898efff57c65061ea2c360d2cd91bcec d7f759d302612ef9eb0bba022f3b3e1dd433f843
Author: Jeremy Allison <jra at samba.org>
Date:   Thu Jul 10 15:25:40 2008 -0700

    Merge branch 'v3-3-test' of ssh://jra@git.samba.org/data/git/samba into v3-3-test

commit 5fdbf89c898efff57c65061ea2c360d2cd91bcec
Author: Zach Loafman <zachary.loafman at isilon.com>
Date:   Thu Jul 10 18:45:48 2008 +0000

    Fix realpath() check so that it doesn't generate a core() when it fails.

-----------------------------------------------------------------------

Summary of changes:
 source/configure.in |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/configure.in b/source/configure.in
index fc66c17..2ae5e35 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -2795,9 +2795,17 @@ AC_CACHE_CHECK([if the realpath function allows a NULL argument],samba_cv_REALPA
 AC_TRY_RUN([
 #include <stdio.h>
 #include <limits.h>
+#include <signal.h>
+
+void exit_on_core(int ignored) {
+	exit(1);
+}
+
 main() {
-	char *newpath = realpath("/tmp", NULL);
-	exit ((newpath != NULL) ? 0 : 1);
+	char *newpath;
+	signal(SIGSEGV, exit_on_core);
+	newpath = realpath("/tmp", NULL);
+	exit((newpath != NULL) ? 0 : 1);
 }
 ],
 samba_cv_REALPATH_TAKES_NULL=yes,samba_cv_REALPATH_TAKES_NULL=no,samba_cv_REALPATH_TAKES_NULL=cross)])


-- 
Samba Shared Repository


More information about the samba-cvs mailing list