Warning this article may contain opinions of the author that you and iTWire don't agree with.
Visit the last page to have your say in our forum.

No. 1 Story

Cloud alliance sides with Optus on copyright

OzHub, the Macquarie Telecom-led cloud computing alliance, has come down firmly on the side of Optus over the copyright controversy surrounding Optus TV Now, warning that any moves to change the law "risk branding Australia a global luddite state."

read more

25 years to fix an open source bug

Opinion and Analysis

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.

Loading comments ...

- sponsored feature -

The Death of Traditional BI: What’s Next?

How to Make Business Discovery Work for Your Business IP PABX BUYING GUIDE

Business Discovery takes its cues from consumer apps. Like Google, it encourages us- ers to hunt for and explore data without worrying about or even noticing the underly- ing technology. Their entire experience is working within an intuitive interface to get real-time, self-service results with only minimal training. ...more