Null in directory name

Chris Torek chris at umcp-cs.UUCP
Fri Mar 29 18:10:09 AEST 1985


Adb (or---if you're lucky enough to have one---a file system scribble
tool program) can correct mucked up directory names.

However, (and I'm not sure if works for System n, where 3 <= n <= 5),
there is a better way:  if /usr is corrupted such that /usr/bin is now
/usr/b^@n, then "ln /usr/b" to "/usr/bin".  This works iff your namei
code doesn't compare the entire name, including all trailing nulls.
Unfortunately, most do.

As a third alternative, you can always "mkdir /usr/bin" and restore
only the files that go there (assuming you have plenty of disk space),
then remove the "/usr/b^@n" later.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 4251)
UUCP:	{seismo,allegra,brl-bmd}!umcp-cs!chris
CSNet:	chris at umcp-cs		ARPA:	chris at maryland



More information about the Comp.unix mailing list