[net.unix] \"dot\" file deleted!

gwyn@Brl-Vld.ARPA (VLD/VMB) (02/27/85)

Get to the parent of the directory whose "." entry has been deleted.
For example, suppose the corrupted directory is /foo/bar.
	$ cd /foo
Then move all the files you want to save elsewhere:
	$ mkdir bar2
	$ mv bar/* bar2	# this should work just fine
Delete everything else:
	$ rm bar/*	# unnecessary if you really moved everything
	$ rm bar/.*
Then delete the empty corrupted directory:
	$ su
	# /etc/unlink bar/.	# just in case
	# /etc/unlink bar/..
	# /etc/unlink bar

An alternative is to put back the missing "." entry, but since it
really should be at the beginning of the directory you are perhaps
better off with the above procedure.

ron@BRL-TGR (Ron Natalie) (02/27/85)

If dot is not there, or protected, use an path from somewhere else.
Cd into a higher directory and reference the directory by name rather
than using a relative path from within.

You can put the "." back if you are superuser by saying
	ln dir dir/.

-Ron