Menu

#6 Fix for Mac OS X Security Update 2005-007

open
nobody
None
5
2012-12-11
2005-08-18
Andreas
No

The Mac OS X Security Update 2005-007 broke the wrapper due to
the missing ftime function. For more information see the bug report:
http://sourceforge.net/tracker/index.php?
func=detail&aid=1262323&group_id=39428&atid=425187

I don't know if Apple will fix the problem, and as I need a quick
solution I created a little patch for this wich uses the gettimeofday()
function instead of the ftime() function on Mac OS X.

It works for me, however as I'm not a C programmer I have just
"stolen" a solution I found in the internet ( http://
borglab.media.mit.edu/cgi-bin/cvsweb/signalcore/
OpinionMetricsLogger.cpp.diff?r1=1.2&r2=1.3 ) and tried to put it
together correctly, so it would be good if someone looks over this
patch and verifies it does everything correctly...

Discussion

  • Andreas

    Andreas - 2005-08-18

    Mac OS X patch

     
  • Olivier Dony

    Olivier Dony - 2005-09-27

    Logged In: YES
    user_id=1164607

    This looks fine for me, as I have just done a similar
    patching myself before finding yours in the process of
    posting it here ;-) -- but I'm definitely not a C programmer
    either.

    Small things I would add :
    - I read somewhere that ftime() is supposedly provided by
    libcompat, so it should be possible to avoid patching the
    code by installing libcompat (exercise left to the reader)
    - Somehow "-lcrypto" was added at some point in
    Makefile.macosx, but this is not necessary, as ftime() was
    never provided by libcrypto, but rather by libSystem.

    Just my $0.02...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.