9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] paqfs bug fixed
@ 2002-05-14 21:09 Fco.J.Ballesteros
  0 siblings, 0 replies; only message in thread
From: Fco.J.Ballesteros @ 2002-05-14 21:09 UTC (permalink / raw)
  To: 9fans

At the beginning of loadBlock in paqfs.c
there should be a check:
if (addr == nil)
	return nil;
I meant "if (addr == 0)", sorry but the dumb
terminal I'm using now didn't allow me to delete.

If that check is not there, paqfs does funny things
when it has empty directories, because the code
calling loadBlock does not check if there is no such
block at all (eg. when using the nil offsets of
a directory with no entry at all).

I'm surprised nobody saw this before. Am I the
only one using empty directories on the bitsy? :-)

hth


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-05-14 21:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-14 21:09 [9fans] paqfs bug fixed Fco.J.Ballesteros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).