Funny filenames: so far, no good... (2.9BSD)
Ken Turkowski
ken at turtlevax.UUCP
Wed Jun 5 05:28:21 AEST 1985
In article <520 at x.UUCP> john at x.UUCP (John Woods) writes:
>> I've had a number of responses on how to remove the file whose name is
>> \t 360 200 035 002 \0
>> but no one has won yet. Most people recommended using unlink(2) like this:
>> main() {
>> unlink("\t\360\200\035\002");
>> }
>> but this fails. ...
>> That failed too. Holy filename, Batman! What next?
>> Jeff Percival ...!uwvax!uwmacc!jwp
>
>If that fails, you must have the "`feature'" turned on where 2.9 strips
>out "`illegal'" characters in file names. If so, you have one-and-a-half
>options:
>(.75) Go to your kernel sources, remove that feature, bulk-erase your
>distribution tape so it will never come back, recompile and reboot. Then
>do the unlink, unmolested by malfeatures.
>(1.5) Open the raw disk for writing with adb. When I have to patch disks
>by hand, I always print up extra copies of section 5 of the manual to
>have them arrayed in front of me...
>
>If you don't have sources, you're stuck with the second. Neither of them
>is enjoyable, but at least the first cures it forever.
You can also zap the inode with clri, and let fsck remove it.
--
Ken Turkowski @ CADLINC, Menlo Park, CA
UUCP: {amd,decwrl,hplabs,nsc,seismo,spar}!turtlevax!ken
ARPA: turtlevax!ken at DECWRL.ARPA
More information about the Comp.unix
mailing list