Changeset 61


Ignore:
Timestamp:
Sep 11, 2006, 10:31:56 PM (18 years ago)
Author:
rainer
Message:

Fix for MacOX X problems and Cygwin compile problem, resolves tickets #33, #34, #35.

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/aclocal.m4

    r47 r61  
    11951195        #
    11961196        if test "x$GCC" = xyes; then
    1197           AC_MSG_CHECKING([for non-apple i386])
     1197          AC_MSG_CHECKING([for non-apple non-cygwin i386])
    11981198          samhain_i386=no
    11991199          $CC -E -dM - < /dev/null | egrep '__i386__' >/dev/null 2>&1
    12001200          if test $? = 0; then
    12011201            # apples gcc does not understand the assembly we provide
    1202             $CC -E -dM - < /dev/null | egrep '__APPLE__' >/dev/null 2>&1 || samhain_i386=yes
     1202            $CC -E -dM - < /dev/null | egrep '(__APPLE__|__CYGWIN__)' >/dev/null 2>&1 || samhain_i386=yes
    12031203          fi
    12041204          if test "x$samhain_i386" = xyes; then
  • trunk/configure.ac

    r59 r61  
    1313dnl start
    1414dnl
    15 AM_INIT_AUTOMAKE(samhain, 2.2.4)
     15AM_INIT_AUTOMAKE(samhain, 2.2.5)
    1616AC_CANONICAL_HOST
    1717
     
    195195
    196196AC_CHECK_HEADERS(stddef.h libgen.h sched.h \
    197         sys/vfs.h \
     197        sys/vfs.h mntent.h \
    198198        sys/select.h sys/socket.h netinet/in.h \
    199199        regex.h glob.h \
     
    261261        seteuid setreuid setresuid lstat getwd getcwd ptrace \
    262262        usleep setpriority getpeereid nanosleep \
    263         strptime basename sched_yield \
     263        strptime basename sched_yield hasmntopt \
    264264        inet_aton gethostbyname setutent setrlimit gethostname uname \
    265265        initgroups getpagesize \
  • trunk/docs/BUGS

    r1 r61  
     1
     2MacOS X:
     3-------
     4
     5(1)  Pointed out by David: static linking is not supported on MacOS X,
     6     see http://developer.apple.com/qa/qa2001/qa1118.html
    17
    28Solaris:
  • trunk/docs/Changelog

    r60 r61  
    1 2.2.4:
     12.2.5:
     2        * workaround for glob(3) sillyness on MacOS X (reported by David)
     3        * fix for broken resorce fork check (reported by David)
     4        * fix for broken compilation on cygwin (reported by Elias)
     5
     62.2.4 (03-09-2006):
    27        * add regression test for the GrowingLogFiles issue to test suite
    38        * fixed sh_unix.c: bug in database init if GrowingLogFiles used
  • trunk/docs/FAQ.html

    r19 r61  
    129129<br><center><h2>Rainer Wichmann</h2></center>
    130130<hr>
    131 <p><i>FAQ Revised: Tuesday 31 January 2006 21:28:35</i></p>
     131<p><i>FAQ Revised: Monday 11 September 2006 22:18:54</i></p>
    132132<hr><h2>Table of Contents</h2>
    133133<dl>
     
    150150<li><a href="#Build and install7">2.8. ./install-sh: strip: not found (Solaris)</a></li>
    151151<li><a href="#Build and install8">2.9. What is sh_tiger1.s?</a></li>
     152<li><a href="#Build and install9">2.10. Why does static compiling (<code>--enable-static</code>) on MaxOS X fail ?</a></li>
    152153</ul></dd>
    153154<dt><b>3. File checking</b></dt>
     
    391392it would be impossible to maintain a library of optimal compile options
    392393for every version of gcc.<br><br></dd>
     394<dt><b><a name="Build and install9">2.10. Why does static compiling (<code>--enable-static</code>) on MaxOS X fail ?</a></b></dt>
     395<dd>Static linking is not supported on MacOS X, see
     396<a href="http://developer.apple.com/qa/qa2001/qa1118.html">Technical Q&A QA1118</a>.
     397This is a MacOS X issue and not a bug in samhain.<br><br></dd>
    393398</dl>
    394399<hr><h2>3. File checking</h2>
  • trunk/src/sh_files.c

    r46 r61  
    721721
    722722  SL_ENTER(_("sh_files_globerr"));
     723
     724  if (errnum == ENOTDIR || errnum == ENOENT)
     725    {
     726      SL_RETURN(0, _("sh_files_globerr"));
     727    }
    723728
    724729  p = sh_util_safe_name (epath);
     
    20682073      if (sl_strlen(testpath) == (17 + sl_strlen(fullpath)))
    20692074        {
    2070           if (0 == sh_unix_file_stat (testpath))
     2075          if (0 != sh_unix_file_stat (testpath))
    20712076            {
    20722077              sh_files_filecheck (class, fullpath, rsrc, &dummy, 1);
  • trunk/src/sh_suidchk.c

    r55 r61  
    521521               0 != strcmp(tmpcat, ShSuidchkExclude)))
    522522            {
    523               /* fs is a STATIC string
     523              /* fs is a STATIC string or NULL
    524524               */
    525525              fs = filesystem_type (tmpcat, tmpcat, &buf);
     
    17711771          /* check for the "nosuid" option
    17721772           */
     1773#ifdef HAVE_HASMNTOPT
    17731774          if (NULL == hasmntopt(mnt, "nosuid"))
    17741775            type = mnt->mnt_type;
    17751776          else
    1776             type = _("nosuid");
     1777            type = _("nosuid"); /* hasmntopt (nosuid) */
     1778#else
     1779          type = mnt->mnt_type;
     1780#endif
    17771781        }
    17781782    }
Note: See TracChangeset for help on using the changeset viewer.