Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!mimsy!chris From: chris@mimsy.UUCP Newsgroups: comp.unix.questions,comp.unix.wizards,comp.unix.xenix Subject: Re: Confused file name in directory Message-ID: <5587@mimsy.UUCP> Date: Wed, 25-Feb-87 13:03:12 EST Article-I.D.: mimsy.5587 Posted: Wed Feb 25 13:03:12 1987 Date-Received: Fri, 27-Feb-87 23:26:54 EST References: <105@aob.UUCP> <563@aw.sei.cmu.edu.sei.cmu.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 57 Xref: utgpu comp.unix.questions:1184 comp.unix.wizards:1126 comp.unix.xenix:116 In article <105@aob.UUCP> someone finds a directory entry with an embedded NUL, and has nothing handy to fix it. In article <563@aw.sei.cmu.edu.sei.cmu.edu> pdb@sei.cmu.edu (Patrick Barron) writes: >As a last resort you could use 'clri' on the inode associated with that >file (use 'ls -li' to find the inode numner). This will indeed make fsck clear the directory entry, but will also lose the contents of the file. If there is another link to the file, it can be copied first, but if not, there are other ways. The problem is in the directory itself, not in the file; so you can clri the directory inode, and fsck will put any orphaned files in the lost+found directory. This will lose the names of each of the inodes, but these can be saved first: # ls -li > dir_list # clri # umount # fsck # mount # cd # mkdir # sh