Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!ptsfa!lll-lcc!styx!ames!ucbcad!ucbvax!decvax!tektronix!tekcrl!terryl From: terryl@tekcrl.UUCP Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.xenix Subject: Re: Confused file name in directory Message-ID: <1441@tekcrl.TEK.COM> Date: Fri, 27-Feb-87 16:04:44 EST Article-I.D.: tekcrl.1441 Posted: Fri Feb 27 16:04:44 1987 Date-Received: Sun, 1-Mar-87 15:20:48 EST References: <105@aob.UUCP> <563@aw.sei.cmu.edu.sei.cmu.edu> <5587@mimsy.UUCP> <1667@oddjob.UChicago.EDU> Reply-To: terryl@tekcrl.tek.com Organization: Tektronix, Inc., Beaverton, OR. Lines: 18 Xref: utgpu comp.unix.questions:1225 comp.unix.wizards:1175 comp.unix.xenix:132 In article <1667@oddjob.UChicago.EDU> matt@oddjob.uchicago.edu (Yes, *THAT* Matt Crawford) writes: +In article <5587@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: +) In article <105@aob.UUCP> someone finds a directory entry with an +) embedded NUL, and has nothing handy to fix it. +) +) There is still another way, easier yet but more dangerous and +) thrilling. You cannot edit a directory, but you can edit a file. +) And the only difference between the two is one byte. ... + +Hoowie! Is that complicated. Sounds fun though. I just +unmount the partition, get out a calculator, and adb the raw +disk. Any wizard worth his paycheck would take it one step further: adb the block partition(don't have to unmount it first) and then use adb to modify the ACTUAL directory block where the entry with the embedded NULL in it. It's doable (I've done it on a V7 file system; I don't know if I'd want to try it on a 4.2 file system). You wanna talk about complicated????