bug-hurd
[Top][All Lists]
Advanced

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

store_open() unforgiving in bootstrap fs


From: John Tobey
Subject: store_open() unforgiving in bootstrap fs
Date: Mon, 26 Nov 2001 02:03:12 -0500
User-agent: Mutt/1.2.5i

Hi all,

I got a segfault where an informative diagnostic would have been
welcome.  My mistake was to use "-T typed hd0s5" instead of "-T typed
device:hd0s5" in ext2fs.static's command line when bootstrapping.

The crash came in file_name_lookup() presumably because there is no
working directory port yet.  Is there an easy way to patch
libstore:store_open() so that it returns an error rather than
dereferencing a null pointer in that case?

Anyhow, my problem is easily worked around: use correct command line
syntax. :) I just thought it would be nice to put in a check, but I
don't know the best way for libstore to detect whether it is the
bootstrap filesystem.

Best,
-John

-- 
John Tobey <jtobey@john-edwin-tobey.org>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]