[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ossec-dev] [Bug 89] New: search fails in ossec-wui-0.2



http://www.ossec.net/bugs/show_bug.cgi?id=89

           Summary: search fails in ossec-wui-0.2
           Product: OSSEC
           Version: UI-0.2
          Platform: Macintosh
        OS/Version: FreeBSD
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: ossec-ui
        AssignedTo: ossec-dev@xxxxxxxxx
        ReportedBy: merlijn@xxxxxxxxxxxxxxxxxxxxxxxx


every search failed with a default install of ossec-wui-0.2 on
freeBSD6.0Security

tracking down the problem lead to:
Fatal error: Call to undefined function posix_getpid() in
/usr/local/www/data-dist/ossec-wui-0.2/site/search.php on line 245

I have not fully checked my apache/php install yet.
Both are installed by the ports on freeBSD.
esp. PHP maybe incomplete. Will post more details soon.

but replacing:
/sites/search.php

$USER_searchid = posix_getpid().$curr_time.rand(); 

with:
    if (function_exists("posix_getpid")) {
          $USER_searchid = posix_getpid().$curr_time.rand();
    }
    else {
        $USER_searchid = uniqid().$curr_time.rand();
    }
solves the problem.


-- 
Configure bugmail: http://www.ossec.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


OSSEC home | Main Index | Thread Index


OSSEC project: www.ossec.net.
Mailling list information: http://www.ossec.net/en/mailing_lists.html.