Follow the Australian Telecommunications scene NEWSLETTER- FREE TRIAL
Core Dump
Core Dump RSSStephen Withers turns his gaze on the world of Apple, with detours into other aspects of IT and communications as they catch his attention.
Technology news and Jobs arrow Our Blogs arrow Core Dump arrow 25 years to fix an open source bug
25 years to fix an open source bug E-mail
by Stephen Withers   
Tuesday, 13 May 2008
The open source community often claims to be able to find and fix bugs more quickly than closed development teams can, partly due to the number of pairs of eyes that can scrutinise the code. But that doesn't mean every fault is fixed quickly: how does a quarter-century old bug grab you?

Switzerland-based Unix developer Marc Balmer recently found and fixed a BSD bug that had a lifespan of 25 years.

As Balmer explains in his blog, the bug had been observed by the Samba development team, which had written its own code as an alternative to the faulty BSD routines. And I'm inclined to believe that other programmers must have encountered the problem as well.

But it seems nobody thought to tell the BSD developers.

BSD and its derivatives provide functions called telldir(), readdir(), seekdir() and readdir() for working with directories. Balmer established they do contain a bug, just as the Samba team suspected. In some circumstances, calling seekdir() does not return to the correct position in the directory stream.

The good news is that he went the extra mile to find and fix the underlying issue. "The fix is surprisingly simple, not to say trivial", he wrote.

Balmer says the fix has now been applied to FreeBSD, NetBSD and DragonflyBSD, and has been committed to the OpenBSD patch branches.

"I don't know anyone in Apple, but they will eventually figure it out themselves", he wrote. Possibly: Apple does not have an exemplary record when it comes to promptly applying updates to open source software to the code that ships with Mac OS X.

Powered By Joomla Tags

Please enable JavaScript in your browser to post your comment!

 
< Next story in category   Previous story in the category >
iTWire user statistics Visitors last 30 days
694,279
Subscribers 15,210
#1 independent technology news advertise here
  •   *  
  • Search
  • AdvSeach
  • Login
  • Events
  • FreeStuff

- Advertisement -

Featured Whitepapers

Follow iTWire on Twitter

About iTWire

iTWire is all about technology news, information, jobs and community for the IT and telecommunications industry professional. Subscribe to our free ICT daily newsletter